magpie.cli
¶
Submodules¶
Package Contents¶
Classes¶
Patch incorrectly handled mutually exclusive groups sections in subparsers. |
Functions¶
|
Groups all sub-helper CLI listed in |
Attributes¶
- class magpie.cli.SubArgumentParserFixedMutexGroups(prog=None, usage=None, description=None, epilog=None, parents=[], formatter_class=HelpFormatter, prefix_chars='-', fromfile_prefix_chars=None, argument_default=None, conflict_handler='error', add_help=True, allow_abbrev=True, exit_on_error=True)[source]¶
Bases:
argparse.ArgumentParser
Patch incorrectly handled mutually exclusive groups sections in subparsers.
- magpie.cli.magpie_helper_cli(args=None)[source]¶
Groups all sub-helper CLI listed in
magpie.cli
as a commonmagpie_helper
.Dispatches the provided arguments to the appropriate sub-helper CLI as requested. Each sub-helper CLI must implement functions
make_parser
andmain
to generate the arguments and dispatch them to the corresponding caller.