Added help options to PDB

This commit is contained in:
Benjamin Peterson 2008-03-26 11:57:47 +00:00
parent 27f43740b1
commit 13be2cf284
1 changed files with 1 additions and 1 deletions

View File

@ -1238,7 +1238,7 @@ def help():
print 'along the Python search path' print 'along the Python search path'
def main(): 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] ..." print "usage: pdb.py scriptfile [arg] ..."
sys.exit(2) sys.exit(2)