From: William Stein Date: Sun, 22 Oct 2006 04:54:06 +0000 (-0700) Subject: Print out the usage message if pyrexc is called with no options and no input source... X-Git-Tag: 0.9.6.14~29^2~221 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=42074163d6f5e8b6b02d5a01199992458109ef65;p=cython.git Print out the usage message if pyrexc is called with no options and no input source files. --- diff --git a/Cython/Compiler/CmdLine.py b/Cython/Compiler/CmdLine.py index 5abb71c7..9c2269f7 100644 --- a/Cython/Compiler/CmdLine.py +++ b/Cython/Compiler/CmdLine.py @@ -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