CMS 3D CMS Logo

Public Member Functions

argparse::_AppendConstAction Class Reference

Inheritance diagram for argparse::_AppendConstAction:
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 932 of file argparse.py.


Constructor & Destructor Documentation

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

Definition at line 934 of file argparse.py.

00942                               :
00943         super(_AppendConstAction, self).__init__(
00944             option_strings=option_strings,
00945             dest=dest,
00946             nargs=0,
00947             const=const,
00948             default=default,
00949             required=required,
00950             help=help,
00951             metavar=metavar)

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

Definition at line 945 of file argparse.py.

00952                               :
00953         super(_AppendConstAction, self).__init__(
00954             option_strings=option_strings,
00955             dest=dest,
00956             nargs=0,
00957             const=const,
00958             default=default,
00959             required=required,
00960             help=help,
00961             metavar=metavar)
00962 

Member Function Documentation

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

Reimplemented from argparse::Action.

Definition at line 952 of file argparse.py.

00953                                                                      :
00954         items = _copy.copy(_ensure_value(namespace, self.dest, []))
00955         items.append(self.const)
00956         setattr(namespace, self.dest, items)
00957 

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

Reimplemented from argparse::Action.

Definition at line 963 of file argparse.py.

00963                                                                      :
00964         items = _copy.copy(_ensure_value(namespace, self.dest, []))
00965         items.append(self.const)
00966         setattr(namespace, self.dest, items)
00967 
00968