magpie.cli

Submodules

Package Contents

Classes

SubArgumentParserFixedMutexGroups

Patch incorrectly handled mutually exclusive groups sections in subparsers.

Functions

magpie_helper_cli([args])

Groups all sub-helper CLI listed in magpie.cli as a common magpie_helper.

Attributes

__version__

magpie.cli.__version__ = '4.0.0'[source]
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.

_add_container_actions(container)[source]
magpie.cli.magpie_helper_cli(args=None)[source]

Groups all sub-helper CLI listed in magpie.cli as a common magpie_helper.

Dispatches the provided arguments to the appropriate sub-helper CLI as requested. Each sub-helper CLI must implement functions make_parser and main to generate the arguments and dispatch them to the corresponding caller.