Can clap support new methods to establish conflict relationships between argument values? #5950
vanguardCLY
started this conversation in
Ideas
Replies: 1 comment
-
We've been holding off on adding additional validation for now as they come with some costs
This is particularly the case when the validation can be worked around on the caller's side. Instead we've been looking towards re-thinking validation with #3476 but I haven't had time to drive it and another person hasn't stepped in to do so. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The current methods for specifying argument conflict relationships, namely
conflicts_with()
andconflicts_with_all()
, are unable to establish conflict relationships between argument values or between argument values and arguments. In practical application scenarios, such conflict relationships are rather prevalent. Take, for instance, two arguments: one istype
, with valid values ofa1
,a2
, anda3
, and the other isfmt
, with valid values ofb1
,b2
, andb3
. Currently, it is stipulated that when thetype
value isa1
, thefmt
must not exist, and when thetype
value isa3
, thefmt
cannot beb3
, meaning thattype=a1
conflicts withfmt
andtype=a3
conflicts withfmt=b3
. Can clap introduce new methods, say namedconflicts_with_if()
andconflicts_with_ifs()
, to fulfill this functionality? Thank you!Beta Was this translation helpful? Give feedback.
All reactions