Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
senpy
senpy
Commits
7efece02
Commit
7efece02
authored
Apr 07, 2017
by
drevicko
Committed by
GitHub
Apr 07, 2017
Browse files
add option to show senpy version number
parent
1302b0b9
Changes
1
Hide whitespace changes
Inline
Side-by-side
senpy/__main__.py
View file @
7efece02
...
...
@@ -77,7 +77,16 @@ def main():
action
=
'store_true'
,
default
=
False
,
help
=
'Do not run a server, only install plugin dependencies'
)
parser
.
add_argument
(
'--version'
,
'-v'
,
action
=
'store_true'
,
default
=
False
,
help
=
'Output the senpy version and exit'
)
args
=
parser
.
parse_args
()
if
args
.
version
:
print
(
'Senpy version {}'
.
format
(
senpy
.
__version__
))
exit
(
1
)
logging
.
basicConfig
()
rl
=
logging
.
getLogger
()
rl
.
setLevel
(
getattr
(
logging
,
args
.
level
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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