Author: Antonio Cuni <[email protected]>
Branch: resource_warning
Changeset: r83580:5de70e252eef
Date: 2016-04-07 23:00 +0200
http://bitbucket.org/pypy/pypy/changeset/5de70e252eef/
Log: exit if you don't specify the correct -X option; in theory you
should continue and put it in sys._Xoptions, but since it's not
implemented it's better to just exit for now
diff --git a/pypy/interpreter/app_main.py b/pypy/interpreter/app_main.py
--- a/pypy/interpreter/app_main.py
+++ b/pypy/interpreter/app_main.py
@@ -26,6 +26,7 @@
file : program read from script file
- : program read from stdin (default; interactive mode if a tty)
arg ...: arguments passed to program in sys.argv[1:]
+
PyPy options and arguments:
--info : print translation information about this PyPy executable
-X track-resources : track the creation of files and sockets and display
@@ -230,10 +231,9 @@
if Xparam == 'track-resources':
sys.pypy_set_track_resources(True)
else:
- print >> sys.stderr
print >> sys.stderr, 'usage: %s -X [options]' % (get_sys_executable(),)
print >> sys.stderr, '[options] can be: track-resources'
- print >> sys.stderr
+ raise SystemExit
class CommandLineError(Exception):
pass
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit