summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-04-06 14:45:26 (GMT)
committerGuido van Rossum <guido@python.org>1998-04-06 14:45:26 (GMT)
commit8053d89f7b3d26d4c113261dc9e3f58e7dd57eb9 (patch)
tree7824b8166a8bc3227e74fe123a556a965aa1020f /Lib
parentf4b44fa6ef9ce6f4d4aa5e845de57858e8a97f8b (diff)
downloadcpython-8053d89f7b3d26d4c113261dc9e3f58e7dd57eb9.zip
cpython-8053d89f7b3d26d4c113261dc9e3f58e7dd57eb9.tar.gz
cpython-8053d89f7b3d26d4c113261dc9e3f58e7dd57eb9.tar.bz2
Add usage message when no arguments.
Diffstat (limited to 'Lib')
-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)