Parser¶
Module for parsing arguments from console.
-
class
frostmark.parser.
ExecuteAction
(*a, func=None, func_args=(), func_kwargs={}, **kw)[source]¶ ArgumentParser action for add_argument(action=…)
Executes a function and its args + kwargs passed as the __init__ arguments:
- func
- func_args
- func_kwargs
together with argument values inserted into func_kwargs as ‘arg_values’ and exits immediately.
-
class
frostmark.parser.
FrostmarkArgumentParser
(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)[source]¶ Inheriting from ArgumentParser to print custom print message.