[tor-commits] [ooni-probe/master] [bugfix] Fix displaying of nettest options when --help is called (#722)

art at torproject.org art at torproject.org
Fri Sep 22 18:41:06 UTC 2017


commit e2c3f48cf3a768c6193b4c2e2278883f3ecbaa24
Author: Arturo Filastò <arturo at filasto.net>
Date:   Fri Jan 27 11:00:18 2017 +0000

    [bugfix] Fix displaying of nettest options when --help is called (#722)
    
    [hotfix] Fix displaying of nettest options when --help is called
---
 ooni/nettest.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/ooni/nettest.py b/ooni/nettest.py
index edfd9cd7..edba448c 100644
--- a/ooni/nettest.py
+++ b/ooni/nettest.py
@@ -146,6 +146,10 @@ def usageOptionsFactory(test_name, test_version):
             test_name
         )
 
+        def opt_help(self):
+            map(log.msg, self.__str__().split("\n"))
+            sys.exit(0)
+
         def opt_version(self):
             """
             Display the net_test version and exit.





More information about the tor-commits mailing list