Skip to content

how to ignore an option if the vaulue of another option is equal to a custom string #5212

Answered by epage
nbari asked this question in Q&A
Discussion options

You must be logged in to vote

There currently isn't a way to define a conditional conflict (there are some conditional requires). We have an exploration at more customization at #3476 but that would likely not be very ergonomic.

This can easily be handled on the caller side and you can even make errors that match clap errors.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by nbari
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