Method
__init__
(self,
option_strings,
version=None,
dest=SUPPRESS,
default=SUPPRESS,
help=None)
Source from the content-addressed store, hash-verified
| 1126 | class _VersionAction(Action): |
| 1127 | |
| 1128 | def __init__(self, |
| 1129 | option_strings, |
| 1130 | version=None, |
| 1131 | dest=SUPPRESS, |
| 1132 | default=SUPPRESS, |
| 1133 | help=None): |
| 1134 | if help is None: |
| 1135 | help = _("show program's version number and exit") |
| 1136 | super(_VersionAction, self).__init__( |
| 1137 | option_strings=option_strings, |
| 1138 | dest=dest, |
| 1139 | default=default, |
| 1140 | nargs=0, |
| 1141 | help=help) |
| 1142 | self.version = version |
| 1143 | |
| 1144 | def __call__(self, parser, namespace, values, option_string=None): |
| 1145 | version = self.version |
Callers
nothing calls this directly
Tested by
no test coverage detected