def __init__(self, prog, indent_increment=indent_increment, max_help_position=max_help_position, width=width, **kwargs): HelpFormatter.__init__(self, prog, indent_increment, max_help_position, width, **kwargs)
def __init__(self, prog): """Initialize the help formatter. :param prog: The program name """ long_string = "--rac --ansible-runner-rotate-artifacts-count" # 3 here accounts for the spaces in the ljust(6) below HelpFormatter.__init__( self, prog=prog, indent_increment=1, max_help_position=len(long_string) + 3, )
def __init__(self, *args, **kwargs): kwargs["width"] = get_terminal_size()[0] - 2 HelpFormatter.__init__(self, *args, **kwargs)