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


Constructor & Destructor Documentation

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

Definition at line 959 of file argparse.py.

00965                            :
00966         super(_CountAction, self).__init__(
00967             option_strings=option_strings,
00968             dest=dest,
00969             nargs=0,
00970             default=default,
00971             required=required,
00972             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 973 of file argparse.py.

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

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