MCPcopy Index your code
hub / github.com/python/cpython / _add_version_option

Method _add_version_option

Lib/optparse.py:1230–1233  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1228 help=_("show this help message and exit"))
1229
1230 def _add_version_option(self):
1231 self.add_option("--version",
1232 action="version",
1233 help=_("show program's version number and exit"))
1234
1235 def _populate_option_list(self, option_list, add_help=True):
1236 if self.standard_option_list:

Callers 1

_populate_option_listMethod · 0.95

Calls 2

_Function · 0.50
add_optionMethod · 0.45

Tested by

no test coverage detected