Skip to content

Commit

Permalink
traverse: parsed args should be based on inArgs
Browse files Browse the repository at this point in the history
  • Loading branch information
rsteube committed Jan 24, 2023
1 parent 3cf5e1c commit ee26b8a
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 ee26b8a

Please sign in to comment.