Commit 42074163 authored by William Stein's avatar William Stein

Print out the usage message if pyrexc is called with no options and no input source files.

parent 3fb9e45f
......@@ -80,5 +80,7 @@ def parse_command_line(args):
print >>sys.stderr, \
"pyrexc: Only one source file allowed when using -o"
sys.exit(1)
if len(sources) == 0:
bad_usage()
return options, sources
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