summaryrefslogtreecommitdiffstats
path: root/Tools/idle
diff options
context:
space:
mode:
Diffstat (limited to 'Tools/idle')
-rwxr-xr-xTools/idle/tabnanny.py4
1 files changed, 4 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)