fix: don't remove flag value that matches subcommand name (#1781)
Before adoption: this commit came in with the history the project adopted, so no landing records it.
When the command searches args to find the arg matching a particular subcommand name, it needs to ignore flag values, as it is possible that the value for a flag might match the name of the sub command. This change improves argsMinusFirstX() to ignore flag values when it searches for the X to exclude from the result.
authored by Brian Pursley · committed by GitHub · parent cc7e235 · Browse files · 2 files+121 added−8 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
2 files+121 added−8 removed
- other:+121 added−8 removed