Rebase from master
This commit is contained in:
parent
156d47e696
commit
dd7065671f
5
parse.go
5
parse.go
@ -46,9 +46,8 @@ func parseIter(set *flag.FlagSet, ip iterativeParser, args []string, shellComple
|
||||
return err
|
||||
}
|
||||
|
||||
// Start processing only from failed argument and not
|
||||
// from beginning
|
||||
args = append(shortOpts, args[i+1:]...)
|
||||
// swap current argument with the split version
|
||||
args = append(args[:i], append(shortOpts, args[i+1:]...)...)
|
||||
argsWereSplit = true
|
||||
break
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user