Custom OPALS style ArgumentParser class to enable similar parameter style with C++ version. More...
Public Member Functions | |
def | __init__ (self, prog=None, usage=None, description=None, epilog=None, version=None, parents=None, formatter_class=BriefHelpFormatter, prefix_chars='-', fromfile_prefix_chars=None, argument_default=None, conflict_handler='error', add_help=True) |
def | format_help (self) |
def | add_argument_group (self, *args, **kwargs) |
def | add_output_argument_group (self, *args, **kwargs) |
def | add_argument (self, *args, **kwargs) |
accept more items in add_arguments and remove before fall-back to superclass' implementation More... | |
def | parse_args (self, args=None, namespace=None, skipHelpAction=False) |
def | generate_proxy_cls (self) |
construct class from a dict containing object definition (name, attributes) More... | |
def | get_choice_dict (self, action) |
def | print_single_help (self, values) |
print detailed help information for a single parameter option More... | |
def | print_doxygen_help (self, file=None) |
generate doxygen documentation for each action More... | |
Public Attributes | |
user_actions | |
action_extras | |
doxygen_description_width | |
epilog | |
Custom OPALS style ArgumentParser class to enable similar parameter style with C++ version.
def add_argument | ( | self, | |
* | args, | ||
** | kwargs | ||
) |
accept more items in add_arguments and remove before fall-back to superclass' implementation
additional keyword:
References ArgumentGroup.action_extras, ArgumentParser.action_extras, ArgumentParser.epilog, python.tools.opalsargparse.preprocess_kwargs(), ArgumentGroup.user_actions, and ArgumentParser.user_actions.
def generate_proxy_cls | ( | self | ) |
construct class from a dict containing object definition (name, attributes)
def print_doxygen_help | ( | self, | |
file = None |
|||
) |
generate doxygen documentation for each action
argument group unique identifier
recursively generates doxygen documentation for each argument group
References ArgumentParser._group_ctr, ArgumentParser.doxygen_description_width, ArgumentParser.get_choice_dict(), ArgumentGroup.user_actions, and ArgumentParser.user_actions.
def print_single_help | ( | self, | |
values | |||
) |
print detailed help information for a single parameter option
References ArgumentParser.get_choice_dict().