[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



commit e2c3f48cf3a768c6193b4c2e2278883f3ecbaa24
Author: Arturo Filastò <arturo@xxxxxxxxxxx>
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.



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits