[ooni-probe/master] Make sure oonireport receives correct args (#550)

commit 8a40d9a3d7764be841dbf23c4bdf986a2b42aca9 Author: Simone Basso <bassosimone@gmail.com> Date: Sun Jun 19 19:56:51 2016 +0200 Make sure oonireport receives correct args (#550) > *Tu quoue, argv[0], fili mi!* Closes #457 reported by @anadahz. Tested locally (this time!) by running: ``` export PYTHONPATH=. ./bin/oonireport status ./bin/oonireport --version ./bin/oonireport upload ``` All commands now seem to work as they should. --- ooni/report/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ooni/report/cli.py b/ooni/report/cli.py index 075178c..12ea83c 100644 --- a/ooni/report/cli.py +++ b/ooni/report/cli.py @@ -60,7 +60,7 @@ def tor_check(): sys.exit(1) -def run(args=sys.argv): +def run(args=sys.argv[1:]): options = Options() try: options.parseOptions(args)
participants (1)
-
art@torproject.org