Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
fluiddyn
transonic
Commits
5aebe3020f8a
Commit
f678007b
authored
Oct 05, 2018
by
Pierre Augier
Browse files
--version
parent
5ab2e8cf23aa
Changes
1
Hide whitespace changes
Inline
Side-by-side
fluidpythran/run.py
View file @
5aebe302
...
...
@@ -7,6 +7,7 @@ import argparse
from
pathlib
import
Path
from
glob
import
glob
from
.
import
__version__
from
.files_maker
import
create_pythran_files
from
.log
import
logger
,
set_log_level
...
...
@@ -29,6 +30,13 @@ def parse_args():
action
=
"store_true"
,
)
parser
.
add_argument
(
"-V"
,
"--version"
,
help
=
"print version and exit"
,
action
=
"store_true"
,
)
parser
.
add_argument
(
"-v"
,
"--verbose"
,
help
=
"verbose mode"
,
action
=
"count"
)
return
parser
.
parse_args
()
...
...
@@ -37,6 +45,10 @@ def parse_args():
def
run
():
args
=
parse_args
()
if
args
.
version
:
print
(
__version__
)
return
if
args
.
verbose
is
None
:
set_log_level
(
"info"
)
elif
args
.
verbose
>
0
:
...
...
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