A require*
method that expressing and(&&)
condition when requesting an argument
#2326
Closed
2 tasks done
Make sure you completed the following tasks
Describe your use case
I think the function that requires some arguments only if multiple conditions are satisfied is helpful.
The example of
required_ifs
below is similar toor(||)
expression, notand(&&)
(from here).cfg
is required when--extra=val
or--option=spec
cfg
when--extra=val
and--option=spec
For more simply, the case above likes
But what i want is the example below
Additional context
Related to #2323
The text was updated successfully, but these errors were encountered: