MCPcopy Create free account
hub / github.com/apache/madlib / format_version

Method format_version

src/madpack/argparse.py:2312–2320  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2310 return formatter.format_help()
2311
2312 def format_version(self):
2313 import warnings
2314 warnings.warn(
2315 'The format_version method is deprecated -- the "version" '
2316 'argument to ArgumentParser is no longer supported.',
2317 DeprecationWarning)
2318 formatter = self._get_formatter()
2319 formatter.add_text(self.version)
2320 return formatter.format_help()
2321
2322 def _get_formatter(self):
2323 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