otsdaq_utilities  v2_05_02_indev
argparse.ArgumentParser Class Reference
Inheritance diagram for argparse.ArgumentParser:
argparse._AttributeHolder argparse._ActionsContainer

Public Member Functions

def __init__
 
def add_subparsers
 
def parse_args
 
def parse_known_args
 
def convert_arg_line_to_args
 
def format_usage
 
def format_help
 
def format_version
 
def print_usage
 
def print_help
 
def print_version
 
def exit
 
def error
 
- Public Member Functions inherited from argparse._AttributeHolder
def __repr__
 
- Public Member Functions inherited from argparse._ActionsContainer
def __init__
 
def register
 
def set_defaults
 
def get_default
 
def add_argument
 
def add_argument_group
 
def add_mutually_exclusive_group
 

Public Attributes

 prog
 
 usage
 
 epilog
 
 version
 
 formatter_class
 
 fromfile_prefix_chars
 
 add_help
 
- Public Attributes inherited from argparse._ActionsContainer
 description
 
 argument_default
 
 prefix_chars
 
 conflict_handler
 

Detailed Description

Object for parsing command line strings into Python objects.

Keyword Arguments:
    - prog -- The name of the program (default: sys.argv[0])
    - usage -- A usage message (default: auto-generated from arguments)
    - description -- A description of what the program does
    - epilog -- Text following the argument descriptions
    - parents -- Parsers whose arguments should be copied into this one
    - formatter_class -- HelpFormatter class for printing help messages
    - prefix_chars -- Characters that prefix optional arguments
    - fromfile_prefix_chars -- Characters that prefix files containing
        additional arguments
    - argument_default -- The default value for all arguments
    - conflict_handler -- String indicating how to handle conflicts
    - add_help -- Add a -h/-help option

Definition at line 1538 of file argparse.py.

Member Function Documentation

def argparse.ArgumentParser.error (   self,
  message 
)
error(message: string)

Prints a usage message incorporating the message to stderr and
exits.

If you override this in a subclass, it should not return -- it
should either exit or raise an exception.

Definition at line 2364 of file argparse.py.


The documentation for this class was generated from the following file: