Skip to content

Support for mutually exclusive groups #50

@fennerm

Description

@fennerm

Describe the solution you'd like
It would be nice if argparse's mutually exclusive argument groups could be supported. If arguments are placed in a mutually exclusive group, the help message should indicate them by listing as --option_a | --option_b | .... Argdantic should verify that at least one of the arguments in the group was passed.

Describe alternatives you've considered
Currently we can handle by adding extra verification in the main func, but the help message is not so clear

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions