Update command.go

This commit is contained in:
Lynn Cyrin (they/them) 2019-09-13 07:35:16 -07:00 committed by GitHub
parent 3f6f97754a
commit 72c249389c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -218,7 +218,6 @@ func (c *Command) useShortOptionHandling() bool {
// the arguments (remainingArgs) as this is what flag expects.
func reorderArgs(commandFlags []Flag, args []string) []string {
var remainingArgs, reorderedArgs []string
var reorderedArgs []string
nextIndexMayContainValue := false
for i, arg := range args {