Is there a recommendation for generating Git-style, 'last one wins' flags like --progress
/--no-progress
?
#5448
Unanswered
vermiculus
asked this question in
Q&A
Replies: 1 comment 4 replies
-
You want to declare that the arts override each other. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I cursory search of the
Arg
struct documentation forno-
yields nothing to do this automatically.Given this documentation from
conflicts_with
, though, what I'm asking for might not be exactly possible with clap:This would seem to imply the set/reset behavior seen in some Git commands isn't possible, but I'm also wondering if there's a way to have two options control a single field with
ArgAction::SetTrue
andArgAction::SetFalse
, respectively.Beta Was this translation helpful? Give feedback.
All reactions