From 052a3dd4b1ee1d40e12de1436af9d9f183bd6516 Mon Sep 17 00:00:00 2001 From: Steven Knight Date: Wed, 27 Mar 2002 16:07:08 +0000 Subject: Document the ARGUMENTS dictionary for command-line args. --- doc/man/scons.1 | 13 +++++++++++-- 1 file 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 -- cgit v0.12