From: Robert Bradshaw Date: Thu, 14 May 2009 09:05:17 +0000 (-0700) Subject: Only one source file allowed when using -embed X-Git-Tag: 0.11.2.rc1~10^2~14 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=4dfca056fc6948a4ad183211a2c92c9cf7830096;p=cython.git Only one source file allowed when using -embed --- diff --git a/Cython/Compiler/CmdLine.py b/Cython/Compiler/CmdLine.py index d70223a4..d7b2f23a 100644 --- a/Cython/Compiler/CmdLine.py +++ b/Cython/Compiler/CmdLine.py @@ -153,5 +153,9 @@ def parse_command_line(args): sys.exit(1) if len(sources) == 0 and not options.show_version: bad_usage() + if Options.embed and len(sources) > 1: + sys.stderr.write( + "cython: Only one source file allowed when using -embed\n") + sys.exit(1) return options, sources