ska_sdp_piper.piper.command.cli_command_parser module
- class ska_sdp_piper.piper.command.cli_command_parser.CLIArgument(*args, **kwargs)[source]
Bases:
objectModel which holds information required to define a single command-line argument as per the
ArgumentParser'sadd_argument()function API.For more detalls, refer official python guide.
- class ska_sdp_piper.piper.command.cli_command_parser.CLICommandParser(version=None)[source]
Bases:
objectBuilds the argparser for CLI application initialisation
- create_sub_parser(subparser_name, sub_command, cli_args, help=None)[source]
Creates sub parser.
- Parameters:
subparser_name (str) -- Name of the sub parser.
sub_command (func) -- Function associated with the sub command.
cli_args ([CLIArgument]) -- List of CLI arguments associated with the sub command.
help (str) -- Help text for the sub command.