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

Method _add_help_option

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

Source from the content-addressed store, hash-verified

1223 self._create_option_mappings()
1224
1225 def _add_help_option(self):
1226 self.add_option("-h", "--help",
1227 action="help",
1228 help=_("show this help message and exit"))
1229
1230 def _add_version_option(self):
1231 self.add_option("--version",

Callers 1

_populate_option_listMethod · 0.95

Calls 2

_Function · 0.50
add_optionMethod · 0.45

Tested by

no test coverage detected