Only one source file allowed when using -embed
authorRobert Bradshaw <robertwb@math.washington.edu>
Thu, 14 May 2009 09:05:17 +0000 (02:05 -0700)
committerRobert Bradshaw <robertwb@math.washington.edu>
Thu, 14 May 2009 09:05:17 +0000 (02:05 -0700)
Cython/Compiler/CmdLine.py

index d70223a48a1c84da0b94e8ac5a765ae33c8ee0c7..d7b2f23a04936216a614241369596fdf904c6100 100644 (file)
@@ -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