From 42074163d6f5e8b6b02d5a01199992458109ef65 Mon Sep 17 00:00:00 2001 From: William Stein Date: Sat, 21 Oct 2006 21:54:06 -0700 Subject: [PATCH] Print out the usage message if pyrexc is called with no options and no input source files. --- Cython/Compiler/CmdLine.py | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.26.2