Method
__init__
(self,
option_strings,
version=None,
dest=SUPPRESS,
default=SUPPRESS,
help=None,
deprecated=False)
Source from the content-addressed store, hash-verified
| 1176 | class _VersionAction(Action): |
| 1177 | |
| 1178 | def __init__(self, |
| 1179 | option_strings, |
| 1180 | version=None, |
| 1181 | dest=SUPPRESS, |
| 1182 | default=SUPPRESS, |
| 1183 | help=None, |
| 1184 | deprecated=False): |
| 1185 | if help is None: |
| 1186 | help = _("show program's version number and exit") |
| 1187 | super(_VersionAction, self).__init__( |
| 1188 | option_strings=option_strings, |
| 1189 | dest=dest, |
| 1190 | default=default, |
| 1191 | nargs=0, |
| 1192 | help=help) |
| 1193 | self.version = version |
| 1194 | |
| 1195 | def __call__(self, parser, namespace, values, option_string=None): |
| 1196 | version = self.version |
Callers
nothing calls this directly
Tested by
no test coverage detected