Skip to content

Can you define the output of conflicts_with #5391

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

You must be logged in to vote

There isn't way to do one-off customization. You'd need to get the clap::Error and check the ErrorKind and the context to see if its your message and then change it to what you want. This is not quite a well beaten path. However, if there are basics tweaks that work for all conflicts that could be made in clap itself, then everyone would benefit from the improvement.

Replies: 1 comment

Comment options

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