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

Method __call__

Lib/argparse.py:1271–1278  ·  view source on GitHub ↗
(self, parser, namespace, values, option_string=None)

Source from the content-addressed store, hash-verified

1269 self.version = version
1270
1271 def __call__(self, parser, namespace, values, option_string=None):
1272 version = self.version
1273 if version is None:
1274 version = parser.version
1275 formatter = parser._get_formatter()
1276 formatter.add_text(version)
1277 parser._print_message(formatter.format_help(), _sys.stdout)
1278 parser.exit()
1279
1280
1281class _SubParsersAction(Action):

Callers

nothing calls this directly

Calls 5

_get_formatterMethod · 0.80
add_textMethod · 0.80
_print_messageMethod · 0.80
format_helpMethod · 0.45
exitMethod · 0.45

Tested by

no test coverage detected