summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2002-03-27 16:07:08 (GMT)
committerSteven Knight <knight@baldmt.com>2002-03-27 16:07:08 (GMT)
commit052a3dd4b1ee1d40e12de1436af9d9f183bd6516 (patch)
treec53017b4a4887c0398a809f6886e64fd0d970885
parentf7c2476eff7fe0c2672b18dcf60437b5842d6e0e (diff)
downloadSCons-052a3dd4b1ee1d40e12de1436af9d9f183bd6516.zip
SCons-052a3dd4b1ee1d40e12de1436af9d9f183bd6516.tar.gz
SCons-052a3dd4b1ee1d40e12de1436af9d9f183bd6516.tar.bz2
Document the ARGUMENTS dictionary for command-line args.
-rw-r--r--doc/man/scons.113
1 files changed, 11 insertions, 2 deletions
diff --git a/doc/man/scons.1 b/doc/man/scons.1
index 51ee464..29a6ed6 100644
--- a/doc/man/scons.1
+++ b/doc/man/scons.1
@@ -179,8 +179,17 @@ may be specified on the command line:
scons debug=1 .
.EE
-These variables can be used in the configuration file(s) to modify
-the build in any way.
+These variables are available in SConscript files
+through the ARGUMENTS dictionary,
+and can be used in the configuration file(s) to modify
+the build in any way:
+
+.ES
+if ARGUMENTS.get('debug', 0):
+ env = Environment(CCFLAGS = '-g')
+else:
+ env = Environment()
+.EE
.\" .B scons
.\" can maintain a cache of target (derived) files that can