Skip to main content

HelpFormatter

Standard library class argparse.HelpFormatter View source
class HelpFormatter
class HelpFormatter
Constructors 1
__init__
__init__(self: Self, prog: str, indent_increment: int = 2, max_help_position: int = 24, width: Optional[int] = None, color: bool = True)
Defined in argparse
Methods 7
start_section
start_section(self: Self, heading: Optional[str])
Defined in argparse
end_section
end_section(self: Self)
Defined in argparse
add_text
add_text(self: Self, text: Optional[str])
Defined in argparse
add_usage
add_usage(self: Self, usage: Optional[str], actions: List[Action], groups: List[_MutuallyExclusiveGroup], prefix: Optional[str] = None)
Defined in argparse
add_argument
add_argument(self: Self, action: Action)
Defined in argparse
add_arguments
add_arguments(self: Self, actions: List[Action])
Defined in argparse
format_help
format_help(self: Self) -> str
Defined in argparse