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

[tor-commits] [ooni-probe/master] Display help if no command line options are specified



commit b98ad9b11b90eacf08b962cef5391cc69fdfaedf
Author: Arturo Filastò <hellais@xxxxxxxxx>
Date:   Sat Mar 3 15:08:38 2012 -0800

    Display help if no command line options are specified
---
 ooniprobe.py |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/ooniprobe.py b/ooniprobe.py
index 958c9b1..6da2608 100755
--- a/ooniprobe.py
+++ b/ooniprobe.py
@@ -179,3 +179,6 @@ if __name__ == "__main__":
     elif args.runall:
         o.run_tests()
 
+    elif len(sys.argv) < 2:
+        parser.print_help()
+



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