summaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
Diffstat (limited to 'Tools')
-rwxr-xr-xTools/idle/tabnanny.py4
-rwxr-xr-xTools/scripts/tabnanny.py4
-rwxr-xr-xTools/scripts/tabpolice.py4
3 files changed, 12 insertions, 0 deletions
diff --git a/Tools/idle/tabnanny.py b/Tools/idle/tabnanny.py
index 9af8ecb..b290fb6 100755
--- a/Tools/idle/tabnanny.py
+++ b/Tools/idle/tabnanny.py
@@ -19,9 +19,13 @@ def main():
opts, args = getopt.getopt(sys.argv[1:], "v")
except getopt.error, msg:
print msg
+ return
for o, a in opts:
if o == '-v':
verbose = verbose + 1
+ if not args:
+ print "Usage:", sys.argv[0], "file_or_directory ..."
+ return
for arg in args:
check(arg)
diff --git a/Tools/scripts/tabnanny.py b/Tools/scripts/tabnanny.py
index 9af8ecb..b290fb6 100755
--- a/Tools/scripts/tabnanny.py
+++ b/Tools/scripts/tabnanny.py
@@ -19,9 +19,13 @@ def main():
opts, args = getopt.getopt(sys.argv[1:], "v")
except getopt.error, msg:
print msg
+ return
for o, a in opts:
if o == '-v':
verbose = verbose + 1
+ if not args:
+ print "Usage:", sys.argv[0], "file_or_directory ..."
+ return
for arg in args:
check(arg)
diff --git a/Tools/scripts/tabpolice.py b/Tools/scripts/tabpolice.py
index 22005e1..ae97581 100755
--- a/Tools/scripts/tabpolice.py
+++ b/Tools/scripts/tabpolice.py
@@ -16,6 +16,7 @@ def main():
opts, args = getopt.getopt(sys.argv[1:], "qv")
except getopt.error, msg:
print msg
+ return
for o, a in opts:
if o == '-v':
verbose = verbose + 1
@@ -23,6 +24,9 @@ def main():
if o == '-q':
quiet = 1
verbose = 0
+ if not args:
+ print "Usage:", sys.argv[0], "file_or_directory ..."
+ return
for arg in args:
check(arg)