CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions
argparse._HelpAction Class Reference
Inheritance diagram for argparse._HelpAction:
argparse.Action argparse.Action argparse._AttributeHolder argparse._AttributeHolder argparse._AttributeHolder argparse._AttributeHolder

Public Member Functions

def __call__
 
def __call__
 
def __init__
 
def __init__
 
- Public Member Functions inherited from argparse.Action
def __call__
 
def __call__
 
def __init__
 
def __init__
 
- Public Member Functions inherited from argparse._AttributeHolder
def __repr__
 
def __repr__
 

Additional Inherited Members

- Public Attributes inherited from argparse.Action
 choices
 
 const
 
 default
 
 dest
 
 help
 
 metavar
 
 nargs
 
 option_strings
 
 required
 
 type
 

Detailed Description

Definition at line 979 of file argparse.py.

Constructor & Destructor Documentation

def argparse._HelpAction.__init__ (   self,
  option_strings,
  dest = SUPPRESS,
  default = SUPPRESS,
  help = None 
)

Definition at line 985 of file argparse.py.

Referenced by argparse._HelpAction.__call__(), and argparse._HelpAction.__init__().

986  help=None):
987  super(_HelpAction, self).__init__(
988  option_strings=option_strings,
989  dest=dest,
990  default=default,
991  nargs=0,
992  help=help)
def argparse._HelpAction.__init__ (   self,
  option_strings,
  dest = SUPPRESS,
  default = SUPPRESS,
  help = None 
)

Definition at line 996 of file argparse.py.

References argparse._HelpAction.__init__().

997  help=None):
998  super(_HelpAction, self).__init__(
999  option_strings=option_strings,
1000  dest=dest,
1001  default=default,
1002  nargs=0,
1003  help=help)

Member Function Documentation

def argparse._HelpAction.__call__ (   self,
  parser,
  namespace,
  values,
  option_string = None 
)

Definition at line 993 of file argparse.py.

Referenced by argparse._HelpAction.__call__().

994  def __call__(self, parser, namespace, values, option_string=None):
995  parser.print_help()
996  parser.exit()
997 
def argparse._HelpAction.__call__ (   self,
  parser,
  namespace,
  values,
  option_string = None 
)

Definition at line 1004 of file argparse.py.

References argparse._HelpAction.__call__(), and argparse._HelpAction.__init__().

1005  def __call__(self, parser, namespace, values, option_string=None):
1006  parser.print_help()
1007  parser.exit()
1008