-
Notifications
You must be signed in to change notification settings - Fork 441
Closed
Milestone
Description
Would be nice to specify option dependencies i.e. if an option is present, another option must also be present.
Reference example ('requires' flag):
https://github.com/kbknapp/clap-rs/blob/master/examples/07_option_args.rs
https://docs.rs/clap/2.31.1/clap/struct.Arg.html#method.requires
Usage example:
# ./pointorline --start=5,5 # start can exist by itself
# ./pointorline --end=10,10 # end cannot exist without start, error!
Right now it's possible to check this after parsing is done, so it's not a pressing issue, but it would be nice to have.
Kshitiz-Sharma, lenkite, xaviarias, plauko, aminfara and 3 more