Print out the usage message if pyrexc is called with no options and no input source...
authorWilliam Stein <wstein@gmail.com>
Sun, 22 Oct 2006 04:54:06 +0000 (21:54 -0700)
committerWilliam Stein <wstein@gmail.com>
Sun, 22 Oct 2006 04:54:06 +0000 (21:54 -0700)
Cython/Compiler/CmdLine.py

index 5abb71c724ed1c2e4d1435189f2924b60e5ed62c..9c2269f749a382f4018d09373aa2da20f962be9a 100644 (file)
@@ -80,5 +80,7 @@ def parse_command_line(args):
         print >>sys.stderr, \
             "pyrexc: Only one source file allowed when using -o"
         sys.exit(1)
+    if len(sources) == 0:
+        bad_usage()
     return options, sources