test
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._StoreConstAction Class Reference
Inheritance diagram for argparse._StoreConstAction:
argparse.Action argparse._AttributeHolder argparse._StoreFalseAction argparse._StoreTrueAction

Public Member Functions

def __call__
 
def __init__
 
- Public Member Functions inherited from argparse.Action
def __call__
 
def __init__
 
- Public Member Functions inherited from argparse._AttributeHolder
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 849 of file argparse.py.

Constructor & Destructor Documentation

def argparse._StoreConstAction.__init__ (   self,
  option_strings,
  dest,
  const,
  default = None,
  required = False,
  help = None,
  metavar = None 
)

Definition at line 858 of file argparse.py.

859  metavar=None):
860  super(_StoreConstAction, self).__init__(
861  option_strings=option_strings,
862  dest=dest,
863  nargs=0,
864  const=const,
865  default=default,
866  required=required,
867  help=help)

Member Function Documentation

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

Definition at line 868 of file argparse.py.

References argparse.Action.const, python.rootplot.argparse.Action.const, argparse.Action.dest, and python.rootplot.argparse.Action.dest.

869  def __call__(self, parser, namespace, values, option_string=None):
870  setattr(namespace, self.dest, self.const)
871