Update command.go

Co-Authored-By: Sascha Grunert <sgrunert@suse.com>
This commit is contained in:
Lynn Cyrin (they/them) 2019-09-13 07:27:16 -07:00 committed by GitHub
parent bfdd794eb3
commit 3f6f97754a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -217,7 +217,7 @@ func (c *Command) useShortOptionHandling() bool {
// reorderArgs moves all flags (via reorderedArgs) before the rest of
// the arguments (remainingArgs) as this is what flag expects.
func reorderArgs(commandFlags []Flag, args []string) []string {
var remainingArgs []string
var remainingArgs, reorderedArgs []string
var reorderedArgs []string
nextIndexMayContainValue := false