argparse.ArgumentDefaultsHelpFormatter

class argparse.ArgumentDefaultsHelpFormatter(prog, indent_increment=2, max_help_position=24, width=None)[source]

Help message formatter which adds default values to argument help.

Only the name of this class is considered a public API. All the methods provided by the class are considered an implementation detail.

Methods

__format__ default object formatter
__init__(prog[, indent_increment, ...])
__new__((S, ...)
__reduce__ helper for pickle
__reduce_ex__ helper for pickle
__sizeof__(() -> int) size of object in memory, in bytes
__subclasshook__ Abstract classes can override this to customize issubclass().
_add_item(func, args)
_dedent()
_expand_help(action)
_fill_text(text, width, indent)
_format_action(action)
_format_action_invocation(action)
_format_actions_usage(actions, groups)
_format_args(action, default_metavar)
_format_text(text)
_format_usage(usage, actions, groups, prefix)
_get_help_string(action)
_indent()
_iter_indented_subactions(action)
_join_parts(part_strings)
_metavar_formatter(action, default_metavar)
_split_lines(text, width)
add_argument(action)
add_arguments(actions)
add_text(text)
add_usage(usage, actions, groups[, prefix])
end_section()
format_help()
start_section(heading)