Does the required_if_eq_all() method not support multiple independent condition settings? #5951
Unanswered
vanguardCLY
asked this question in
Q&A
Replies: 1 comment
-
If you look at the implementation, you'll see that we do not handle OR-ing between groups of calls but that they are conjoined together. A lot of clap's API is expected to be additive like this. Supporting something else would fall under a similar answer as #5950. |
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.
-
For example:
It is expected that when (
extra=val1
andoption=spec
) or (extra=val2
andoption=spec
), the argumentconfig
must be specified.Testing the above code found that it could not meet expectation. Is it possible that
required_if_eq_all()
cannot be used in this way? Can clap provide some methods to implement this function? Thank you!Beta Was this translation helpful? Give feedback.
All reactions