From 4dfca056fc6948a4ad183211a2c92c9cf7830096 Mon Sep 17 00:00:00 2001 From: Robert Bradshaw Date: Thu, 14 May 2009 02:05:17 -0700 Subject: [PATCH] Only one source file allowed when using -embed --- Cython/Compiler/CmdLine.py | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 2.26.2