MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / __call__

Method __call__

tools/python-3.11.9-amd64/Lib/argparse.py:1144–1151  ·  view source on GitHub ↗
(self, parser, namespace, values, option_string=None)

Source from the content-addressed store, hash-verified

1142 self.version = version
1143
1144 def __call__(self, parser, namespace, values, option_string=None):
1145 version = self.version
1146 if version is None:
1147 version = parser.version
1148 formatter = parser._get_formatter()
1149 formatter.add_text(version)
1150 parser._print_message(formatter.format_help(), _sys.stdout)
1151 parser.exit()
1152
1153
1154class _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