Skip to content
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

Is there a way to group options? (one of) #1408

Closed
Niryo opened this issue Dec 2, 2020 · 4 comments
Closed

Is there a way to group options? (one of) #1408

Niryo opened this issue Dec 2, 2020 · 4 comments

Comments

@Niryo
Copy link
Contributor

Niryo commented Dec 2, 2020

is there any way to group options together like in argparse?
let's say I have two options: -a and -b, is there a way to group them under "one of" so that the user will get an error if he passes them both?

@shadowspawn
Copy link
Collaborator

shadowspawn commented Dec 5, 2020

No grouping support, no.

A related open issue is #1358

@shadowspawn
Copy link
Collaborator

I looked up the argparse support:

@shadowspawn
Copy link
Collaborator

An answer was provided, and no further activity in a month. Closing this as resolved.

Feel free to open a new issue if it comes up again, with new information and renewed interest.

@shadowspawn
Copy link
Collaborator

For interest to people following this issue, there is a PR open for 'conflicts(). See #1678

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants