MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / __init__

Method __init__

tools/python-3.11.9-amd64/Lib/argparse.py:1128–1142  ·  view source on GitHub ↗
(self,
                 option_strings,
                 version=None,
                 dest=SUPPRESS,
                 default=SUPPRESS,
                 help=None)

Source from the content-addressed store, hash-verified

1126class _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

Calls 2

_Function · 0.70
__init__Method · 0.45

Tested by

no test coverage detected