MCPcopy Index your code
hub / github.com/RustPython/RustPython / __call__

Method __call__

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

Source from the content-addressed store, hash-verified

1193 self.version = version
1194
1195 def __call__(self, parser, namespace, values, option_string=None):
1196 version = self.version
1197 if version is None:
1198 version = parser.version
1199 formatter = parser._get_formatter()
1200 formatter.add_text(version)
1201 parser._print_message(formatter.format_help(), _sys.stdout)
1202 parser.exit()
1203
1204
1205class _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