How can I handle this case which requires any group #1537
Labels
A-validators
Area: ArgMatches validation logi
C-enhancement
Category: Raise on the bar on expectations
E-medium
Call for participation: Experience needed to fix: Medium / intermediate
💸 $20
I have a special flag which when it is set I want always one of two groups to match. This special flag should never passed alone.
To be more clear I created a simple example on what I want to achieve:
The case which I can not find how to handle is
["my-app", "--special"]
. Of-course I can workaround this withis_present
, but I'm curious if there is a solution via groups. Maybe this is a valid case whererequires_any
is needed.The text was updated successfully, but these errors were encountered: