From 689a879760bf4b9475b584306656715de382c9a1 Mon Sep 17 00:00:00 2001 From: stevenknight Date: Wed, 27 Mar 2002 16:07:08 +0000 Subject: [PATCH] Document the ARGUMENTS dictionary for command-line args. git-svn-id: http://scons.tigris.org/svn/scons/trunk@309 fdb21ef1-2011-0410-befe-b5e4ea1792b1 --- 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 51ee464f..29a6ed6f 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 -- 2.26.2