$treeview $search $mathjax $extrastylesheet
otsdaq_utilities  v2_03_00
$projectbrief
$projectbrief
$searchbox

argparse::ArgumentParser Class Reference

Inheritance diagram for argparse::ArgumentParser:
argparse::_AttributeHolder argparse::_ActionsContainer

List of all members.

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 Attributes

 prog
 usage
 epilog
 version
 formatter_class
 fromfile_prefix_chars
 add_help

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:

Generated on 14 Mar 2019 for otsdaq_utilities by  doxygen 1.6.1