ArgumentParser
class ArgumentParser
Fields
13
prog
str
usage
Optional[str]
description
Optional[str]
epilog
Optional[str]
prefix_chars
str
fromfile_prefix_chars
Optional[str]
argument_default
ArgumentValue
conflict_handler
str
allow_abbrev
bool
exit_on_error
bool
suggest_on_error
bool
color
bool
formatter_class
Callable[str, HelpFormatter]
Constructors
1
__init__(self: Self, prog: Optional[str] = None, usage: Optional[str] = None, description: Optional[str] = None, epilog: Optional[str] = None, parents = None, formatter_class = HelpFormatter, prefix_chars: str = "-", fromfile_prefix_chars: Optional[str] = None, argument_default = None, conflict_handler: str = "error", add_help: bool = True, allow_abbrev: bool = True, exit_on_error: bool = True, suggest_on_error: bool = False, color: bool = True, Self: type)
Defined in
argparse
Methods
18
add_argument_group(self: Self, title: str = "", description: Optional[str] = None, Self: type)
Defined in
argparseadd_mutually_exclusive_group(self: Self, required: bool = False, Self: type)
Defined in
argparseadd_subparsers(self: Self, title: Optional[str] = None, description: Optional[str] = None, prog: Optional[str] = None, parser_class = None, dest: str = SUPPRESS, required: bool = False, help: Optional[str] = None, metavar = None, Self: type)
Defined in
argparseregister(self: Self, registry_name: Literal[str], value: str, object, Self: type)
Defined in
argparseparse_known_args(self: Self, args = None, namespace = None, Self: type)
Defined in
argparseparse_intermixed_args(self: Self, args = None, namespace = None, Self: type)
Defined in
argparseparse_known_intermixed_args(self: Self, args = None, namespace = None, Self: type)
Defined in
argparseconvert_arg_line_to_args(self: Self, arg_line: str, Self: type)
Defined in
argparseexit(self: Self, status: int = 0, message: Optional[str] = None, Self: type)
Defined in
argparse