Fix: (issue#1254) short options handling needs to proceed from last terminated error
This commit is contained in:
5
parse.go
5
parse.go
@@ -46,8 +46,9 @@ func parseIter(set *flag.FlagSet, ip iterativeParser, args []string, shellComple
|
||||
return err
|
||||
}
|
||||
|
||||
// swap current argument with the split version
|
||||
args = append(args[:i], append(shortOpts, args[i+1:]...)...)
|
||||
// Start processing only from failed argument and not
|
||||
// from beginning
|
||||
args = append(shortOpts, args[i+1:]...)
|
||||
argsWereSplit = true
|
||||
break
|
||||
}
|
||||
|
Reference in New Issue
Block a user