Commit 9ce6c04a authored by protolambda's avatar protolambda

cli: fix empty args case

parent 7fa7434c
...@@ -189,6 +189,9 @@ func Run(ctx *cli.Context) error { ...@@ -189,6 +189,9 @@ func Run(ctx *cli.Context) error {
break break
} }
} }
if len(args) == 0 {
args = []string{""}
}
po := NewProcessPreimageOracle(args[0], args[1:]) po := NewProcessPreimageOracle(args[0], args[1:])
if err := po.Start(); err != nil { if err := po.Start(); err != nil {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment