Commit 10eef388 authored by Tristan Gingold's avatar Tristan Gingold

main: disp config in --version

parent 2db9c7bf
"""Current HDLMake version"""
__version__ = "3.2"
__version__ = "3.2dev1"
......@@ -87,6 +87,12 @@ def _action_runner(modules_pool):"No command selected")
def _get_version_string(prog):
cmd = 'win' if shell.check_windows_commands() else 'unx'
tool = 'win' if shell.check_windows_tools() else 'unx'
return "{} {} [tool:{} cmd:{}]".format(prog, __version__, tool, cmd)
def _get_parser():
"""This is the parser function, where options and commands are defined.
......@@ -145,7 +151,7 @@ def _get_parser():
'-v', '--version', action='version',
help="print the version of this program",
version=parser.prog + " " + __version__)
'-a', '--all', action='store_true', dest="all_files",
help="use all the listed files, do not solve the fileset")
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment