projects
/
cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3fb9e45
)
Print out the usage message if pyrexc is called with no options and no input source...
author
William Stein
<wstein@gmail.com>
Sun, 22 Oct 2006 04:54:06 +0000
(21:54 -0700)
committer
William Stein
<wstein@gmail.com>
Sun, 22 Oct 2006 04:54:06 +0000
(21:54 -0700)
Cython/Compiler/CmdLine.py
patch
|
blob
|
history
diff --git
a/Cython/Compiler/CmdLine.py
b/Cython/Compiler/CmdLine.py
index 5abb71c724ed1c2e4d1435189f2924b60e5ed62c..9c2269f749a382f4018d09373aa2da20f962be9a 100644
(file)
--- 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