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

Method print_version

src/madpack/argparse.py:2338–2344  ·  view source on GitHub ↗
(self, file=None)

Source from the content-addressed store, hash-verified

2336 self._print_message(self.format_help(), file)
2337
2338 def print_version(self, file=None):
2339 import warnings
2340 warnings.warn(
2341 'The print_version method is deprecated -- the "version" '
2342 'argument to ArgumentParser is no longer supported.',
2343 DeprecationWarning)
2344 self._print_message(self.format_version(), file)
2345
2346 def _print_message(self, message, file=None):
2347 if message:

Callers

nothing calls this directly

Calls 2

_print_messageMethod · 0.95
format_versionMethod · 0.95

Tested by

no test coverage detected