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

Method _populate_option_list

Lib/optparse.py:1235–1243  ·  view source on GitHub ↗
(self, option_list, add_help=True)

Source from the content-addressed store, hash-verified

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:
1237 self.add_options(self.standard_option_list)
1238 if option_list:
1239 self.add_options(option_list)
1240 if self.version:
1241 self._add_version_option()
1242 if add_help:
1243 self._add_help_option()
1244
1245 def _init_parsing_state(self):
1246 # These are set in parse_args() for the convenience of callbacks.

Callers 1

__init__Method · 0.95

Calls 3

_add_version_optionMethod · 0.95
_add_help_optionMethod · 0.95
add_optionsMethod · 0.80

Tested by

no test coverage detected