diplomat.utils.cli_tools.build_full_parser¶
- diplomat.utils.cli_tools.build_full_parser(function_tree: dict, parent_parser: ArgumentParser, name: str | None = None) CLIEngine[source]¶
Build an entire CLI interface with subcommands from a tree of typecaster functions.
- Parameters:
function_tree – A nested dictionary of strings to type caster functions. Strings specify sub command words that each type caster function should be referenced by.
parent_parser – The argument parser to add commands to, or parser for the entire program.
name – Name of the program.
- Returns:
A CLIEngine, which represents a command line program.