[pypy-svn] r47490 - pypy/dist/pypy/bin

fijal at codespeak.net fijal at codespeak.net
Tue Oct 16 11:34:03 CEST 2007


Author: fijal
Date: Tue Oct 16 11:34:02 2007
New Revision: 47490

Modified:
   pypy/dist/pypy/bin/checkmodule.py
Log:
Support for -unknown option


Modified: pypy/dist/pypy/bin/checkmodule.py
==============================================================================
--- pypy/dist/pypy/bin/checkmodule.py	(original)
+++ pypy/dist/pypy/bin/checkmodule.py	Tue Oct 16 11:34:02 2007
@@ -27,6 +27,10 @@
             if modname in ('-h', '--help'):
                 print >> sys.stderr, __doc__
                 sys.exit(0)
+            if modname.startswith('-'):
+                print >> sys.stderr, "Bad command line"
+                print >> sys.stderr, __doc__
+                sys.exit(1)
         else:
             _, b, backend, modname = argv
             assert b == '-b'



More information about the Pypy-commit mailing list