[tor-commits] [ooni-probe/master] Display help if no command line options are specified
art at torproject.org
art at torproject.org
Sat Mar 3 23:13:05 UTC 2012
commit b98ad9b11b90eacf08b962cef5391cc69fdfaedf
Author: Arturo Filastò <hellais at gmail.com>
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()
+
More information about the tor-commits
mailing list