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

Method format_version

lib/0xtools/argparse.py:2325–2333  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2323 return formatter.format_help()
2324
2325 def format_version(self):
2326 import warnings
2327 warnings.warn(
2328 'The format_version method is deprecated -- the "version" '
2329 'argument to ArgumentParser is no longer supported.',
2330 DeprecationWarning)
2331 formatter = self._get_formatter()
2332 formatter.add_text(self.version)
2333 return formatter.format_help()
2334
2335 def _get_formatter(self):
2336 return self.formatter_class(prog=self.prog)

Callers 1

print_versionMethod · 0.95

Calls 3

_get_formatterMethod · 0.95
add_textMethod · 0.80
format_helpMethod · 0.45

Tested by

no test coverage detected