summaryrefslogtreecommitdiffstats
path: root/Lib/tabnanny.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/tabnanny.py')
-rwxr-xr-xLib/tabnanny.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/tabnanny.py b/Lib/tabnanny.py
index 9af8ecb..b290fb6 100755
--- a/Lib/tabnanny.py
+++ b/Lib/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)