Method
__init__
(self,
option_strings,
dest,
default=None,
required=False,
help=None)
Source from the content-addressed store, hash-verified
| 1084 | class _CountAction(Action): |
| 1085 | |
| 1086 | def __init__(self, |
| 1087 | option_strings, |
| 1088 | dest, |
| 1089 | default=None, |
| 1090 | required=False, |
| 1091 | help=None): |
| 1092 | super(_CountAction, self).__init__( |
| 1093 | option_strings=option_strings, |
| 1094 | dest=dest, |
| 1095 | nargs=0, |
| 1096 | default=default, |
| 1097 | required=required, |
| 1098 | help=help) |
| 1099 | |
| 1100 | def __call__(self, parser, namespace, values, option_string=None): |
| 1101 | count = getattr(namespace, self.dest, None) |
Callers
nothing calls this directly
Tested by
no test coverage detected