Fix the -h option
authorstevenknight <stevenknight@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Mon, 21 Jul 2003 15:36:38 +0000 (15:36 +0000)
committerstevenknight <stevenknight@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Mon, 21 Jul 2003 15:36:38 +0000 (15:36 +0000)
git-svn-id: http://scons.tigris.org/svn/scons/trunk@743 fdb21ef1-2011-0410-befe-b5e4ea1792b1

src/engine/SCons/Script/__init__.py

index 6aa45bac4a0ecaf429df0361f303bd793a9beaf3..fe565682746e24137ebe55cdc42677ade47e0282 100644 (file)
@@ -677,7 +677,7 @@ class SConscriptSettableOptions:
         self.settable[name] = value
     
 
-def _main(args):
+def _main(args, parser):
     targets = []
 
     # Enable deprecated warnings by default.
@@ -971,9 +971,9 @@ def _exec_main():
     options, args = parser.parse_args(all_args)
     if options.debug == "pdb":
         import pdb
-        pdb.Pdb().runcall(_main, args)
+        pdb.Pdb().runcall(_main, args, parser)
     else:
-        _main(args)
+        _main(args, parser)
 
 def main():
     global exit_status