Commit 79551e18 authored by VIGNET Pierre's avatar VIGNET Pierre
Browse files

[cmd] Simplification for version number from cmd

parent 40e3c79a
......@@ -32,7 +32,7 @@ from functools import wraps
# Custom imports
import cadbiom.commons as cm
from pkg_resources import get_distribution
from __init__ import __version__
LOGGER = cm.logger()
parser = None
......@@ -377,7 +377,7 @@ def main():
parser.add_argument("-vv", "--verbose", nargs="?", default="info")
"-V", "--version", action="version",
version="%(prog)s " + get_distribution('cadbiom_cmd').version
version="%(prog)s " + __version__
# Subparsers and ability to get the current subcommand name
Supports Markdown
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