summaryrefslogtreecommitdiff
path: root/doc/user
diff options
context:
space:
mode:
authorWilliam Deegan <bill@baddogconsulting.com>2015-09-28 13:57:59 -0700
committerWilliam Deegan <bill@baddogconsulting.com>2015-09-28 13:57:59 -0700
commit41e5bf7b1c90d460970ddcb9f4924828b393751d (patch)
tree992bf7275932e5d91280d5fd0e1376e6f2f92520 /doc/user
parentaeb07cc8cccd59eb727dcf3967f7ad3cdebc8158 (diff)
downloadscons-41e5bf7b1c90d460970ddcb9f4924828b393751d.tar.gz
Added help for pull request #226
Diffstat (limited to 'doc/user')
-rw-r--r--doc/user/output.xml22
1 files changed, 22 insertions, 0 deletions
diff --git a/doc/user/output.xml b/doc/user/output.xml
index cdb28d75..78dcca49 100644
--- a/doc/user/output.xml
+++ b/doc/user/output.xml
@@ -83,6 +83,21 @@ Type: 'scons program' to build the production program,
<para>
+ Optionally, one can specify the append flag:
+
+ </para>
+
+ <scons_example name="output_ex1_a">
+ <file name="SConstruct" printme="1">
+Help("""
+Type: 'scons program' to build the production program,
+ 'scons debug' to build the debug version.
+""", append=True)
+ </file>
+ </scons_example>
+
+ <para>
+
(Note the above use of the Python triple-quote syntax,
which comes in very handy for
specifying multi-line strings like help text.)
@@ -120,6 +135,13 @@ Type: 'scons program' to build the production program,
<para>
+ When used with &AddOption; Help("text", append=False) will clobber any help output associated with AddOption().
+ To preserve the help output from AddOption(), set append=True.
+
+ </para>
+
+ <para>
+
Another use would be to make the help text conditional
on some variable.
For example, suppose you only want to display