-
Python's Can |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
In clap, In argparse, For creating sections in the help, what you want is |
Beta Was this translation helpful? Give feedback.
In clap,
ArgGroup
is meant to create an alias for a group of arguments and may have its own validation rules. One argument can belong to multiple groups.In argparse,
add_argument_group
is more visual whileadd_mutually_exclusive_group
is closer to whatArgGroup
does but is still less powerful (only handles mutually exclusive, only one group allows).For creating sections in the help, what you want is
Arg::help_heading
orCommand::next_help_heading
.