CMS 3D CMS Logo

Public Member Functions

argparse::_StoreAction Class Reference

Inheritance diagram for argparse::_StoreAction:
argparse::Action argparse::Action argparse::_AttributeHolder argparse::_AttributeHolder argparse::_AttributeHolder argparse::_AttributeHolder

List of all members.

Public Member Functions

def __call__
def __call__
def __init__
def __init__

Detailed Description

Definition at line 803 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 
)

Reimplemented from argparse::Action.

Definition at line 805 of file argparse.py.

00816                               :
00817         if nargs == 0:
00818             raise ValueError('nargs for store actions must be > 0; if you '
00819                              'have nothing to store, actions such as store '
00820                              'true or store const may be more appropriate')
00821         if const is not None and nargs != OPTIONAL:
00822             raise ValueError('nargs must be %r to supply const' % OPTIONAL)
00823         super(_StoreAction, self).__init__(
00824             option_strings=option_strings,
00825             dest=dest,
00826             nargs=nargs,
00827             const=const,
00828             default=default,
00829             type=type,
00830             choices=choices,
00831             required=required,
00832             help=help,
00833             metavar=metavar)

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

Reimplemented from argparse::Action.

Definition at line 816 of file argparse.py.

00826                               :
00827         if nargs == 0:
00828             raise ValueError('nargs for store actions must be > 0; if you '
00829                              'have nothing to store, actions such as store '
00830                              'true or store const may be more appropriate')
00831         if const is not None and nargs != OPTIONAL:
00832             raise ValueError('nargs must be %r to supply const' % OPTIONAL)
00833         super(_StoreAction, self).__init__(
00834             option_strings=option_strings,
00835             dest=dest,
00836             nargs=nargs,
00837             const=const,
00838             default=default,
00839             type=type,
00840             choices=choices,
00841             required=required,
00842             help=help,
00843             metavar=metavar)
00844 

Member Function Documentation

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

Reimplemented from argparse::Action.

Definition at line 834 of file argparse.py.

00835                                                                      :
00836         setattr(namespace, self.dest, values)
00837 

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

Reimplemented from argparse::Action.

Definition at line 845 of file argparse.py.

00845                                                                      :
00846         setattr(namespace, self.dest, values)
00847 
00848