-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Arg::conflicts_with_everything
method
#1583
Comments
Dylan-DPC-zz
pushed a commit
that referenced
this issue
Jan 5, 2020
* feat: Add `Arg::conflicts_with_everything` method #1583 * fix: Typo in src/build/arg/mod.rs Co-Authored-By: Dylan DPC <[email protected]> Co-authored-by: Dylan DPC <[email protected]>
gpfeifer
pushed a commit
to gpfeifer/clap
that referenced
this issue
Jan 7, 2020
CreepySkeleton
pushed a commit
that referenced
this issue
Feb 4, 2020
CreepySkeleton
pushed a commit
that referenced
this issue
Feb 4, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Summary
Add explicit support for arguments that conflict with every other flag and must be always passed alone.
Detailed description and motivation
There are cases when we need to introduce a command line argument that should always be used standalone, i.e it conflicts with every other argument.
For now this can be implemented via
conflicts_with_all
but we have to explicitly enlist all the other flags then:Inspired by #1579
The text was updated successfully, but these errors were encountered: