Commit 735485dd authored by Alan Marchiori's avatar Alan Marchiori
Browse files

added usage if no input

parent 0b608a6f
......@@ -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))
Markdown is supported
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