MCPcopy
hub / github.com/tanelpoder/0xtools / __call__

Method __call__

lib/0xtools/argparse.py:1036–1042  ·  view source on GitHub ↗
(self, parser, namespace, values, option_string=None)

Source from the content-addressed store, hash-verified

1034 self.version = version
1035
1036 def __call__(self, parser, namespace, values, option_string=None):
1037 version = self.version
1038 if version is None:
1039 version = parser.version
1040 formatter = parser._get_formatter()
1041 formatter.add_text(version)
1042 parser.exit(message=formatter.format_help())
1043
1044
1045class _SubParsersAction(Action):

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected