Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Alan Marchiori
SodorProfiler
Commits
735485dd
Commit
735485dd
authored
Oct 17, 2018
by
Alan Marchiori
Browse files
added usage if no input
parent
0b608a6f
Changes
1
Hide whitespace changes
Inline
Side-by-side
profile.py
View file @
735485dd
...
...
@@ -142,7 +142,11 @@ if __name__== "__main__":
parser
.
add_argument
(
'outfile'
,
default
=
None
,
nargs
=
'*'
,
help
=
'the .out file to process.'
)
args
=
parser
.
parse_args
()
from
pprint
import
pprint
if
args
.
outfile
==
[]:
parser
.
print_usage
()
exit
(
-
1
)
from
pprint
import
pprint
for
inputfile
in
args
.
outfile
:
pprint
(
profile
(
inputfile
))
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