Public Member Functions | |
def | __call__ |
def | __call__ |
def | __init__ |
def | __init__ |
Definition at line 957 of file argparse.py.
def argparse::_CountAction::__init__ | ( | self, | |
option_strings, | |||
dest, | |||
default = None , |
|||
required = False , |
|||
help = None |
|||
) |
Definition at line 959 of file argparse.py.
def argparse::_CountAction::__init__ | ( | self, | |
option_strings, | |||
dest, | |||
default = None , |
|||
required = False , |
|||
help = None |
|||
) |
Definition at line 971 of file argparse.py.
def argparse::_CountAction::__call__ | ( | self, | |
parser, | |||
namespace, | |||
values, | |||
option_string = None |
|||
) |
Reimplemented from argparse::Action.
Definition at line 973 of file argparse.py.
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