summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2008-03-26 11:57:47 (GMT)
committerBenjamin Peterson <benjamin@python.org>2008-03-26 11:57:47 (GMT)
commit13be2cf284d33ae7b241453939de4d01053b98b2 (patch)
treef15e0dd59686a2cb806682a9c67be3477d7261ba /Lib
parent27f43740b1bbccc04a308b61e990265a0e88a049 (diff)
downloadcpython-13be2cf284d33ae7b241453939de4d01053b98b2.zip
cpython-13be2cf284d33ae7b241453939de4d01053b98b2.tar.gz
cpython-13be2cf284d33ae7b241453939de4d01053b98b2.tar.bz2
Added help options to PDB
Diffstat (limited to 'Lib')
-rwxr-xr-xLib/pdb.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/pdb.py b/Lib/pdb.py
index 82b52a3..10303c8 100755
--- a/Lib/pdb.py
+++ b/Lib/pdb.py
@@ -1238,7 +1238,7 @@ def help():
print 'along the Python search path'
def main():
- if not sys.argv[1:]:
+ if not sys.argv[1:] or sys.argv[1] in ("--help", "-h"):
print "usage: pdb.py scriptfile [arg] ..."
sys.exit(2)