def print_version(): """Print the version of this tool to the console.""" print("%(product)s (%(version)s) - %(docstring)s" % { "product": pp.productname(__productname__), "version": __version__, "docstring": __doc__ })
def print_version(module_info): """Print the version of this tool to the console.""" print("%(product)s (%(version)s) - %(docstring)s" % { "product": pp.productname(module_info["__productname__"]), "version": module_info["__version__"], "docstring": module_info["__doc__"] })
def print_version(module_info): """Print the version of this tool to the console.""" print( "%(product)s (%(version)s) - %(docstring)s" % { "product": pp.productname(module_info["__productname__"]), "version": module_info["__version__"], "docstring": module_info["__doc__"] })
def main_usage(module_info): """Return the main usage message for analyse""" return "%(usage)s %(product)s [%(g_opts)s] %(mod_name)s [%(mod_opts)s]" % { 'usage': pp.emph("Usage:"), 'product': pp.productname(module_info["__productname__"]), 'g_opts': pp.globaloption("global-options"), 'mod_name': pp.command("module-name"), 'mod_opts': pp.localoption("module-options") }