Skip to content

Commit

Permalink
Merge pull request #709 from rsteube/traverse-fix-toparse
Browse files Browse the repository at this point in the history
traverse: parsed args should be based on inArgs
  • Loading branch information
rsteube authored Jan 24, 2023
2 parents 3cf5e1c + ee26b8a commit 6f3cf20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion traverse.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ loop:
}
}

toParse := context.Args
toParse := inArgs
if inFlag != nil && inFlag.Consumes("") {
logger.Printf("removing arg %#v since it is a flag missing its argument\n", toParse[len(toParse)-1])
toParse = toParse[:len(toParse)-1] // TODO nargs support
Expand Down

0 comments on commit 6f3cf20

Please sign in to comment.