[pypy-svn] r17997 - pypy/dist/pypy/translator/goal
pedronis at codespeak.net
pedronis at codespeak.net
Fri Sep 30 02:50:03 CEST 2005
Author: pedronis
Date: Fri Sep 30 02:50:01 2005
New Revision: 17997
Modified:
pypy/dist/pypy/translator/goal/translate_pypy_new.py
Log:
manage to list choices in help
Modified: pypy/dist/pypy/translator/goal/translate_pypy_new.py
==============================================================================
--- pypy/dist/pypy/translator/goal/translate_pypy_new.py (original)
+++ pypy/dist/pypy/translator/goal/translate_pypy_new.py Fri Sep 30 02:50:01 2005
@@ -48,7 +48,7 @@
'1_backend': [OPT(('-b', '--backend'), "Backend", ['c', 'llvm'])],
- '2_gc': [OPT(('--gc',), "Garbage collector", ['ref', 'boehm', 'none'])],
+ '2_gc': [OPT(('--gc',), "Garbage collector", ['boehm', 'ref', 'none'])],
},
@@ -168,6 +168,7 @@
elif isinstance(choice, list):
opt_setup['type'] = 'choice'
opt_setup['choices'] = choice
+ opt_setup['metavar'] = "[%s]" % '|'.join(choice)
elif isinstance(choice, bool):
opt_setup['action'] = ['store_false', 'store_true'][choice]
elif choice is int:
More information about the Pypy-commit
mailing list