コード例 #1
0
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__
    })
コード例 #2
0
ファイル: base.py プロジェクト: zmedico/gentoolkit
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__"]
	})
コード例 #3
0
ファイル: __init__.py プロジェクト: zmedico/gentoolkit
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__
	})
コード例 #4
0
ファイル: base.py プロジェクト: mjsir911/gentoolkit
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__"]
        })
コード例 #5
0
ファイル: base.py プロジェクト: mjsir911/gentoolkit
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")
    }
コード例 #6
0
ファイル: base.py プロジェクト: zmedico/gentoolkit
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")
	}