Commit 7fa7434c authored by protolambda's avatar protolambda

cannon: run cli off-by-one fix

parent 9aa079e2
...@@ -185,7 +185,7 @@ func Run(ctx *cli.Context) error { ...@@ -185,7 +185,7 @@ func Run(ctx *cli.Context) error {
args := ctx.Args().Slice() args := ctx.Args().Slice()
for i, arg := range args { for i, arg := range args {
if arg == "--" { if arg == "--" {
args = args[i:] args = args[i+1:]
break break
} }
} }
......
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