[Python-checkins] r61931 - python/trunk/Lib/pdb.py
benjamin.peterson
python-checkins at python.org
Wed Mar 26 12:57:47 CET 2008
Author: benjamin.peterson
Date: Wed Mar 26 12:57:47 2008
New Revision: 61931
Modified:
python/trunk/Lib/pdb.py
Log:
Added help options to PDB
Modified: python/trunk/Lib/pdb.py
==============================================================================
--- python/trunk/Lib/pdb.py (original)
+++ python/trunk/Lib/pdb.py Wed Mar 26 12:57:47 2008
@@ -1238,7 +1238,7 @@
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)
More information about the Python-checkins
mailing list