From 13be2cf284d33ae7b241453939de4d01053b98b2 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Wed, 26 Mar 2008 11:57:47 +0000 Subject: Added help options to PDB --- Lib/pdb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v0.12