Skip to content

feat: Support of "exclusive or" argument sets #144

@milbrandt

Description

@milbrandt

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions