diff options
author | Steven Knight <knight@baldmt.com> | 2004-03-24 14:08:12 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2004-03-24 14:08:12 (GMT) |
commit | 5b3b7a9401f4dd9397cd753740cda263b0fa7d61 (patch) | |
tree | f9ba9732a71db861046c6526c0f4261999c6cd54 /src/engine | |
parent | bd136c4b1fe44da061910372d80b79c86a31d4e3 (diff) | |
download | SCons-5b3b7a9401f4dd9397cd753740cda263b0fa7d61.zip SCons-5b3b7a9401f4dd9397cd753740cda263b0fa7d61.tar.gz SCons-5b3b7a9401f4dd9397cd753740cda263b0fa7d61.tar.bz2 |
Add --debug=presub to the help text.
Diffstat (limited to 'src/engine')
-rw-r--r-- | src/engine/SCons/Script/__init__.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/engine/SCons/Script/__init__.py b/src/engine/SCons/Script/__init__.py index c59ce69..52d0db2 100644 --- a/src/engine/SCons/Script/__init__.py +++ b/src/engine/SCons/Script/__init__.py @@ -493,9 +493,11 @@ class OptParser(OptionParser): help="Search up directory tree for SConstruct, " "build all Default() targets.") - def opt_debug(option, opt, value, parser): - if value in ["count", "dtree", "includes", "memory", "objects", - "pdb", "presub", "time", "tree"]: + debug_options = ["count", "dtree", "includes", "memory", "objects", + "pdb", "presub", "time", "tree"] + + def opt_debug(option, opt, value, parser, debug_options=debug_options): + if value in debug_options: setattr(parser.values, 'debug', value) else: raise OptionValueError("Warning: %s is not a valid debug type" % value) @@ -503,7 +505,7 @@ class OptParser(OptionParser): callback=opt_debug, nargs=1, dest="debug", metavar="TYPE", help="Print various types of debugging information: " - "count, dtree, includes, memory, objects, pdb, time, tree.") + "%s." % string.join(debug_options, ", ")) self.add_option('-f', '--file', '--makefile', '--sconstruct', action="append", nargs=1, |