Commit c92c9742 authored by Robert Bradshaw's avatar Robert Bradshaw

Fix cython -v error when no source files given.

Reported by gpk@kochanski.org
parent d63cef62
...@@ -111,7 +111,7 @@ def parse_command_line(args): ...@@ -111,7 +111,7 @@ def parse_command_line(args):
print >>sys.stderr, \ print >>sys.stderr, \
"cython: Only one source file allowed when using -o" "cython: Only one source file allowed when using -o"
sys.exit(1) sys.exit(1)
if len(sources) == 0: if len(sources) == 0 and not options.show_version:
bad_usage() bad_usage()
return options, sources 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