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

Method print_version

tools/python-3.11.9-amd64/Lib/optparse.py:1596–1605  ·  view source on GitHub ↗

print_version(file : file = stdout) Print the version message for this program (self.version) to 'file' (default stdout). As with print_usage(), any occurrence of "%prog" in self.version is replaced by the current program's name. Does nothing if self.version i

(self, file=None)

Source from the content-addressed store, hash-verified

1594 return ""
1595
1596 def print_version(self, file=None):
1597 """print_version(file : file = stdout)
1598
1599 Print the version message for this program (self.version) to
1600 'file' (default stdout). As with print_usage(), any occurrence
1601 of "%prog" in self.version is replaced by the current program's
1602 name. Does nothing if self.version is empty or undefined.
1603 """
1604 if self.version:
1605 print(self.get_version(), file=file)
1606
1607 def format_option_help(self, formatter=None):
1608 if formatter is None:

Callers 1

take_actionMethod · 0.80

Calls 2

get_versionMethod · 0.95
printFunction · 0.50

Tested by

no test coverage detected