-
Notifications
You must be signed in to change notification settings - Fork 71
Open
Labels
Description
Description
If the list of arguments contain multiple sets of "exclusive or" options how can this be handled?
Repro steps
test [--option1 | --option2] [--option3 | --option4] [--option5 | --option6]
Expected behavior
Possibility to group arguments from which exactely one is allowed.
Actual behavior
As far as I understood the tutorial no formal grouping of options is supported today.
Known workarounds
- Up to two sets of exclusive-or Arguments: A first set can be marked with
[<FirstAttribute>], a second set as[<LastAttribute>]. - Use combinatorics to define "group" Options like
option1_option4_option5. Will get cumbersome. - use subcommands