From: Benjamin Peterson Date: Wed, 26 Mar 2008 11:57:47 +0000 (+0000) Subject: Added help options to PDB X-Git-Tag: v2.6a2~101 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=13be2cf284d33ae7b241453939de4d01053b98b2;p=python Added help options to PDB --- diff --git a/Lib/pdb.py b/Lib/pdb.py index 82b52a3852..10303c8c97 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)