[pypy-svn] r35228 - pypy/dist/pypy/translator/goal

fijal at codespeak.net fijal at codespeak.net
Sun Dec 3 22:32:14 CET 2006


Author: fijal
Date: Sun Dec  3 22:32:12 2006
New Revision: 35228

Modified:
   pypy/dist/pypy/translator/goal/app_main.py
Log:
Fix a bit app_main, -c should work now


Modified: pypy/dist/pypy/translator/goal/app_main.py
==============================================================================
--- pypy/dist/pypy/translator/goal/app_main.py	(original)
+++ pypy/dist/pypy/translator/goal/app_main.py	Sun Dec  3 22:32:12 2006
@@ -176,7 +176,6 @@
         arg = argv[i]
         if not arg.startswith('-'):
             break
-        i += 1
         if arg == '-i':
             go_interactive = True
         elif arg == '-c':
@@ -198,10 +197,12 @@
             print_help()
             return 0
         elif arg == '--':
+            i += 1
             break     # terminates option list
         else:
             print_error('unrecognized option %r' % (arg,))
             return 2
+        i += 1
     sys.argv = argv[i:]
 
     # with PyPy in top of CPython we can only have around 100 



More information about the Pypy-commit mailing list