Validate interaction between args and subcommands #3135
Labels
A-validators
Area: ArgMatches validation logi
C-enhancement
Category: Raise on the bar on expectations
S-waiting-on-design
Status: Waiting on user-facing design to be resolved before implementing
Issue by JayiceZ
Monday Dec 06, 2021 at 10:56 GMT
Originally opened as TeXitoi/structopt#515
Hi, I am new to structopt. And I am not sure is it a structopt issue or a clap issue? Here is the situation I met:
I defined it, like:
And what I want is: When
Test
SubCommand is set, one ofcat
anddog
should be set(or it means that they are in aGroup
, and the group is required whenTest
is set); And whenDebug
is set,host
should be set.I have read the doc and examples, but I am not sure how to implement this function? 😭
The text was updated successfully, but these errors were encountered: