[pypy-svn] r7404 - pypy/trunk/src/goal
mgedmin at codespeak.net
mgedmin at codespeak.net
Thu Nov 18 19:12:25 CET 2004
Author: mgedmin
Date: Thu Nov 18 19:12:21 2004
New Revision: 7404
Modified:
pypy/trunk/src/goal/translate_pypy.py
Log:
Added a simple help message (copied straight from Armin's commit message).
Modified: pypy/trunk/src/goal/translate_pypy.py
==============================================================================
--- pypy/trunk/src/goal/translate_pypy.py (original)
+++ pypy/trunk/src/goal/translate_pypy.py Thu Nov 18 19:12:21 2004
@@ -1,6 +1,14 @@
#
#
#
+"""
+Command-line options for translate_pypy:
+
+ -text Don't start the Pygame viewer
+ -no-c Don't generate the C code
+ -c Generate the C code, but don't compile it
+ -o Generate and compile the C code, but don't run it
+"""
import autopath, sys, threading, pdb
from pypy.objspace.std.objspace import StdObjSpace, W_Object
from pypy.objspace.std.intobject import W_IntObject
@@ -37,6 +45,9 @@
'-o': False,
}
for arg in sys.argv[1:]:
+ if arg in ('-h', '--help'):
+ print __doc__.strip()
+ sys.exit()
assert arg in options, "unknown option %r" % (arg,)
options[arg] = True
More information about the Pypy-commit
mailing list