Commit 1ee6c7e5 authored by Matt Bell's avatar Matt Bell Committed by Juan Batiz-Benet

commands/cli: Fixed arg parse bug

parent 1cb94a12
......@@ -145,6 +145,7 @@ func parseArgs(stringArgs []string, cmd *cmds.Command) ([]interface{}, error) {
if err != nil {
return nil, err
}
j++
}
} else {
var err error
......@@ -152,9 +153,8 @@ func parseArgs(stringArgs []string, cmd *cmds.Command) ([]interface{}, error) {
if err != nil {
return nil, err
}
j++
}
j++
}
if len(stringArgs)-j > 0 {
......
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