simple_automation.manager.ThrowingArgumentParser

class simple_automation.manager.ThrowingArgumentParser(prog=None, usage=None, description=None, epilog=None, parents=[], formatter_class=<class 'argparse.HelpFormatter'>, prefix_chars='-', fromfile_prefix_chars=None, argument_default=None, conflict_handler='error', add_help=True, allow_abbrev=True, exit_on_error=True)

Bases: argparse.ArgumentParser

An argument parser that throws when invalid argument types are passed.

Methods

add_argument

add_argument_group

add_mutually_exclusive_group

add_subparsers

convert_arg_line_to_args

error

Raises an exception on error.

exit

format_help

format_usage

get_default

parse_args

parse_intermixed_args

parse_known_args

parse_known_intermixed_args

print_help

print_usage

register

set_defaults

add_argument(dest, ..., name=value, ...)
add_argument(option_string, option_string, ..., name=value, ...)None
error(message)

Raises an exception on error.