Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
VIGNET Pierre
cadbiom
Commits
79551e18
Commit
79551e18
authored
Apr 02, 2020
by
VIGNET Pierre
Browse files
[cmd] Simplification for version number from cmd
parent
40e3c79a
Changes
1
Hide whitespace changes
Inline
Side-by-side
command_line/cadbiom_cmd/__main__.py
View file @
79551e18
...
...
@@ -32,7 +32,7 @@ from functools import wraps
# Custom imports
import
cadbiom.commons
as
cm
from
pkg_resources
import
get_distribut
ion
from
__init__
import
__vers
ion
__
LOGGER
=
cm
.
logger
()
parser
=
None
...
...
@@ -377,7 +377,7 @@ def main():
parser
.
add_argument
(
"-vv"
,
"--verbose"
,
nargs
=
"?"
,
default
=
"info"
)
parser
.
add_argument
(
"-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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment