CMS 3D CMS Logo

List of all members | Public Member Functions
argparse._StoreAction Class Reference
Inheritance diagram for argparse._StoreAction:
argparse.Action argparse._AttributeHolder

Public Member Functions

def __call__ (self, parser, namespace, values, option_string=None)
 
def __init__ (self, option_strings, dest, nargs=None, const =None, default=None, type=None, choices=None, required=False, help=None, metavar=None)
 
- Public Member Functions inherited from argparse.Action
def __call__ (self, parser, namespace, values, option_string=None)
 
def __init__ (self, option_strings, dest, nargs=None, const =None, default=None, type=None, choices=None, required=False, help=None, metavar=None)
 
- Public Member Functions inherited from argparse._AttributeHolder
def __repr__ (self)
 

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 814 of file argparse.py.

Constructor & Destructor Documentation

def argparse._StoreAction.__init__ (   self,
  option_strings,
  dest,
  nargs = None,
  const = None,
  default = None,
  type = None,
  choices = None,
  required = False,
  help = None,
  metavar = None 
)

Definition at line 826 of file argparse.py.

826  metavar=None):
827  if nargs == 0:
828  raise ValueError('nargs for store actions must be > 0; if you '
829  'have nothing to store, actions such as store '
830  'true or store const may be more appropriate')
831  if const is not None and nargs != OPTIONAL:
832  raise ValueError('nargs must be %r to supply const' % OPTIONAL)
833  super(_StoreAction, self).__init__(
834  option_strings=option_strings,
835  dest=dest,
836  nargs=nargs,
837  const=const,
838  default=default,
839  type=type,
840  choices=choices,
841  required=required,
842  help=help,
843  metavar=metavar)
844 
def __init__(self, option_strings, dest, nargs=None, const =None, default=None, type=None, choices=None, required=False, help=None, metavar=None)
Definition: argparse.py:826

Member Function Documentation

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

Definition at line 845 of file argparse.py.

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

845  def __call__(self, parser, namespace, values, option_string=None):
846  setattr(namespace, self.dest, values)
847 
848 
def __call__(self, parser, namespace, values, option_string=None)
Definition: argparse.py:845