From c92c9742ea969f3fb0ac03e11c87a3b99028cdab Mon Sep 17 00:00:00 2001 From: Robert Bradshaw Date: Fri, 1 Feb 2008 13:03:56 -0800 Subject: [PATCH] Fix cython -v error when no source files given. Reported by gpk@kochanski.org --- Cython/Compiler/CmdLine.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.26.2