Commit df7db48c authored by VIGNET Pierre's avatar VIGNET Pierre
Browse files

[cmd] Add lib version to --version

parent 79551e18
......@@ -33,6 +33,7 @@ from functools import wraps
# Custom imports
import cadbiom.commons as cm
from __init__ import __version__
from cadbiom import __version__ as cadbiom_lib_version
LOGGER = cm.logger()
parser = None
......@@ -377,7 +378,7 @@ def main():
parser.add_argument("-vv", "--verbose", nargs="?", default="info")
parser.add_argument(
"-V", "--version", action="version",
version="%(prog)s " + __version__
version="%(prog)s " + __version__ + "; cadbiom library " + cadbiom_lib_version
)
# Subparsers and ability to get the current subcommand name
......
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