Method
__init__
(self,
option_strings,
dest,
default=None,
required=False,
help=None)
Source from the content-addressed store, hash-verified
| 980 | class _CountAction(Action): |
| 981 | |
| 982 | def __init__(self, |
| 983 | option_strings, |
| 984 | dest, |
| 985 | default=None, |
| 986 | required=False, |
| 987 | help=None): |
| 988 | super(_CountAction, self).__init__( |
| 989 | option_strings=option_strings, |
| 990 | dest=dest, |
| 991 | nargs=0, |
| 992 | default=default, |
| 993 | required=required, |
| 994 | help=help) |
| 995 | |
| 996 | def __call__(self, parser, namespace, values, option_string=None): |
| 997 | new_count = _ensure_value(namespace, self.dest, 0) + 1 |
Callers
nothing calls this directly
Tested by
no test coverage detected