Method
__init__
(self,
option_strings,
version=None,
dest=SUPPRESS,
default=SUPPRESS,
help=None,
deprecated=False)
Source from the content-addressed store, hash-verified
| 1252 | class _VersionAction(Action): |
| 1253 | |
| 1254 | def __init__(self, |
| 1255 | option_strings, |
| 1256 | version=None, |
| 1257 | dest=SUPPRESS, |
| 1258 | default=SUPPRESS, |
| 1259 | help=None, |
| 1260 | deprecated=False): |
| 1261 | if help is None: |
| 1262 | help = _("show program's version number and exit") |
| 1263 | super(_VersionAction, self).__init__( |
| 1264 | option_strings=option_strings, |
| 1265 | dest=dest, |
| 1266 | default=default, |
| 1267 | nargs=0, |
| 1268 | help=help) |
| 1269 | self.version = version |
| 1270 | |
| 1271 | def __call__(self, parser, namespace, values, option_string=None): |
| 1272 | version = self.version |
Callers
nothing calls this directly
Tested by
no test coverage detected