module config.args
¶
Command-line argument parser class.
class ArgParser
¶
ZARP-cli argument parser class.
method __init__
¶
__init__(args: Optional[Sequence[str]] = None)
Class constructor.
Args:
args
: Command-line arguments.
Attributes:
args
: Command-line arguments.args_parsed
: Parsed command-line arguments.parser
: Argument parser object.
method parse_arguments
¶
parse_arguments() → None
Parse arguments.
method process_arguments
¶
process_arguments() → None
Process arguments.
method set_argument_groups
¶
set_argument_groups(attr: str = 'grouped') → None
Parse command line (CLI) arguments.
Returns: Parsed CLI arguments
method set_arguments
¶
set_arguments() → None
Add arguments.
method set_parser
¶
set_parser() → None
Instantiate argument parser.