From: Robert Bradshaw Date: Fri, 1 Feb 2008 21:03:56 +0000 (-0800) Subject: Fix cython -v error when no source files given. X-Git-Tag: 0.9.6.14~29^2~51 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c92c9742ea969f3fb0ac03e11c87a3b99028cdab;p=cython.git Fix cython -v error when no source files given. Reported by gpk@kochanski.org --- diff --git a/Cython/Compiler/CmdLine.py b/Cython/Compiler/CmdLine.py index 703ea2c1..ce268606 100644 --- a/Cython/Compiler/CmdLine.py +++ b/Cython/Compiler/CmdLine.py @@ -111,7 +111,7 @@ def parse_command_line(args): print >>sys.stderr, \ "cython: Only one source file allowed when using -o" sys.exit(1) - if len(sources) == 0: + if len(sources) == 0 and not options.show_version: bad_usage() return options, sources