Ordering of arguments and flags impact one another #1733
Labels
area/v2
relates to / is being considered for v2
kind/bug
describes or fixes a bug
status/triage
maintainers still need to look into this
My urfave/cli version is
** v2.25.3**
Checklist
Dependency Management
Describe the bug
Ordering of arguments and flags impact one another, causing a flag value to be set or unset depending on whether it comes before or after an argument. This can result in a silent error where the flag name is recognized but the value isn't set.
To reproduce
Using the flag example from https://cli.urfave.org/v2/examples/flags/ (copying below for ease of reference)
Observed behavior
Expected behavior
$ ./example my-name --lang spanish
and./example --lang spanish my-name
should both set the--lang
flag to the valuespanish
Additional context
N/A
Want to fix this yourself?
We'd love to have more contributors on this project! If the fix for
this bug is easily explained and very small, feel free to create a
pull request for it.
Run
go version
and paste its output hereRun
go env
and paste its output hereThe text was updated successfully, but these errors were encountered: