CMS 3D CMS Logo

Public Member Functions

argparse::_CountAction Class Reference

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


Constructor & Destructor Documentation

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

Definition at line 960 of file argparse.py.

00966                            :
00967         super(_CountAction, self).__init__(
00968             option_strings=option_strings,
00969             dest=dest,
00970             nargs=0,
00971             default=default,
00972             required=required,
00973             help=help)

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

Definition at line 971 of file argparse.py.

00976                            :
00977         super(_CountAction, self).__init__(
00978             option_strings=option_strings,
00979             dest=dest,
00980             nargs=0,
00981             default=default,
00982             required=required,
00983             help=help)
00984 

Member Function Documentation

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

Reimplemented from argparse::Action.

Definition at line 974 of file argparse.py.

00975                                                                      :
00976         new_count = _ensure_value(namespace, self.dest, 0) + 1
00977         setattr(namespace, self.dest, new_count)
00978 

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

Reimplemented from argparse::Action.

Definition at line 985 of file argparse.py.

00985                                                                      :
00986         new_count = _ensure_value(namespace, self.dest, 0) + 1
00987         setattr(namespace, self.dest, new_count)
00988 
00989