summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2003-07-21 15:36:38 (GMT)
committerSteven Knight <knight@baldmt.com>2003-07-21 15:36:38 (GMT)
commit1737bf0b826d00d06a62f623e61404795cc65b49 (patch)
tree981127b34c0f1f142d285ab78ecf5c5ecddc0bca
parent78c4fae66e565b081bfadd947c2fc9466c57ec03 (diff)
downloadSCons-1737bf0b826d00d06a62f623e61404795cc65b49.zip
SCons-1737bf0b826d00d06a62f623e61404795cc65b49.tar.gz
SCons-1737bf0b826d00d06a62f623e61404795cc65b49.tar.bz2
Fix the -h option
-rw-r--r--src/engine/SCons/Script/__init__.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/engine/SCons/Script/__init__.py b/src/engine/SCons/Script/__init__.py
index 6aa45ba..fe56568 100644
--- a/src/engine/SCons/Script/__init__.py
+++ b/src/engine/SCons/Script/__init__.py
@@ -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