Make Option reuired if another Option is set
Let's say i have the Verb createuser with the Options: Name, Age, Country, ZIPCode and City
How can I define, that if Country is set, ZIPCode and City become required?
So the following would be valid:
MyApp.dll createuser -n "Name" -a "Age"
MyApp.dll createuser -n "Name" -a "Age" -Country "USA" -ZIPCode "12345" -City "NYC"
And this would be Invalid:
MyApp.dll createuser -n "Name" -a "Age" -Country "USA"
MyApp.dll createuser -n "Name" -a "Age" -ZIPCode "12345" -City "NYC"
I definitely need this feature, too. Having options that are mutually exclusive of each other but not exclusive of other groups of options is a necessity, e.g., mycommand (-a|-b) (-c|-d), where -a and -b are exclusive of each other, but they can exist with -c or -d, and -c and -d are mutually exclusive.
(Think plantravel (-f|-c) (-p|-c), where -f means to pack formal clothes, -c means to pack comfortable clothes, -p means to travel by plane, and -c means to travel by car.)