Skip to content

Is there a way to accept either of two flags. only one valid at a time #1738

Discussion options

You must be logged in to vote

You can use either conflicts_with or ArgGroup:

Perhaps the most common use of ArgGroups is to require one and only one argument to be present out of a given set.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by pksunkara
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants