You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fails to parse arguments if a subcommand has an option with remaining parsing strategy and one of the remaining arguments matches the top-level command
#623
Open
ahoppen opened this issue
Mar 11, 2024
· 0 comments
Consider the following
When running the executable with
sub --compiler-args -abc xxx
, the argument parser printsI would have expected it to print
["-abc", "xxx"]
as the value forcompilerArgs
.Removing
customShort("c")
from the top-level command makes the arguments parse as expected.My expectation would be that if a subcommand is specified, the top level arguments should not influence argument parsing of the subcommand in any way.
The text was updated successfully, but these errors were encountered: