Conflicts don't propagate from the global level to the subcommand #1204
Labels
A-parsing
Area: Parser's logic and needs it changed somehow.
A-validators
Area: ArgMatches validation logi
C-bug
Category: Updating dependencies
E-medium
Call for participation: Experience needed to fix: Medium / intermediate
As discussed on Gitter: https://gitter.im/kbknapp/clap-rs?at=5a9f003af3f6d24c68450335
Affected Version of clap
2.31.1
Expected Behavior Summary
When declaring that a subcommand argument is in conflict with a global argument, clap should produce an error no matter whether the global argument comes after or before the subcommand.
Actual Behavior Summary
global argument comes after: conflict
global argument comes before: no conflict
Sample Code or Link to Sample Code
(by @kbknapp)
Steps to Reproduce the issue
Run the above code with
fake foo -g -c
andfake -g foo -c
and observe the difference.The text was updated successfully, but these errors were encountered: