[pypy-svn] r47489 - pypy/dist/pypy/bin
antocuni at codespeak.net
antocuni at codespeak.net
Tue Oct 16 11:32:20 CEST 2007
Author: antocuni
Date: Tue Oct 16 11:32:20 2007
New Revision: 47489
Modified:
pypy/dist/pypy/bin/checkmodule.py
Log:
add support for -h and --help options
Modified: pypy/dist/pypy/bin/checkmodule.py
==============================================================================
--- pypy/dist/pypy/bin/checkmodule.py (original)
+++ pypy/dist/pypy/bin/checkmodule.py Tue Oct 16 11:32:20 2007
@@ -24,6 +24,9 @@
if len(argv) == 2:
backend = 'cli'
modname = argv[1]
+ if modname in ('-h', '--help'):
+ print >> sys.stderr, __doc__
+ sys.exit(0)
else:
_, b, backend, modname = argv
assert b == '-b'
More information about the pypy-svn
mailing list