argparse documentation Help

RequiredTogether

RequiredTogether UDA is used to mark a set of arguments as mutually required. This means that as soon as one argument from this group is specified in the command line then all arguments from the same group must also be specified.

See "Argument dependencies" section for more details.

Required

"Required together" group can be marked as required in order to require all arguments:

@(RequiredTogether.Required) { ... }
Last modified: 07 August 2024