optparse.OptionParser.print_version¶
-
OptionParser.
print_version
(file : file = stdout)[source]¶ 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 is empty or undefined.