diplomat.utils.cli_tools.CLIEngine¶
- class diplomat.utils.cli_tools.CLIEngine(parent_parser: ArgumentParser)[source]¶
Bases:
objectRepresents a CLI program. Is a callable that accepts cli arguments and when called and executes the correct sub-command.
- __init__(parent_parser: ArgumentParser)[source]¶
Private: Create a new CLIEngine. Internal, use build_full_parser to create an instance of this class instead.
- Parameters:
parent_parser – An argparse ArgumentParser to wrap.
Methods
__init__(parent_parser)Private: Create a new CLIEngine.