@@ -28,9 +28,9 @@ SPDX-License-Identifier: MIT
28
28
29
29
<para >
30
30
31
- &SCons; provides a number of ways
32
- for you as the build system writer to grant
33
- the ability to control the build execution .
31
+ Software builds are rarely completely static,
32
+ so &SCons; gives you a number of ways to help control
33
+ build execution via instructions on the command line .
34
34
The arguments that can be specified on
35
35
the command line are broken down into three types:
36
36
@@ -70,7 +70,7 @@ SPDX-License-Identifier: MIT
70
70
all of the build variable settings from the command line,
71
71
as well as a higher-level interface that lets you
72
72
define known build variables,
73
- including defining types, default vaules , help text,
73
+ including defining types, default values , help text,
74
74
and automatic validation,
75
75
as well as applying those to a &consenv; .
76
76
See <xref linkend =" sect-command-line-variables" ></xref >, below.
@@ -117,7 +117,7 @@ SPDX-License-Identifier: MIT
117
117
</para >
118
118
119
119
<section id =" sect-SCONSFLAGS" >
120
- <title >Not Having to Specify Command-Line Options Each Time: the &SCONSFLAGS; Environment Variable</title >
120
+ <title >Not Having to Type Command-Line Options Each Time: the &SCONSFLAGS; Environment Variable</title >
121
121
122
122
<para >
123
123
@@ -214,8 +214,8 @@ C:\Users\foo> <userinput>set SCONSFLAGS="-Q"</userinput>
214
214
215
215
<para >
216
216
217
- &SCons; provides the &f-link-GetOption; function
218
- to query the values set by the various command-line options.
217
+ The &f-link-GetOption; function
218
+ lets you query the values set by the various command-line options.
219
219
220
220
</para >
221
221
@@ -624,7 +624,7 @@ foo.in
624
624
625
625
<para >
626
626
627
- &SCons; lets you define your own command-line options
627
+ You can also define your own command-line options
628
628
for the project with the &f-link-AddOption; function.
629
629
The &AddOption; function takes the same arguments
630
630
as the <function >add_option</function > method
@@ -812,13 +812,6 @@ foo.in
812
812
This allows you to modify
813
813
aspects of your build in response
814
814
to specifications on the command line.
815
- (Note that unless you want to require
816
- a variable to <emphasis >always</emphasis >
817
- be specified you probably want to use
818
- the Python dictionary <methodname >get</methodname > method,
819
- which allows you to designate a default value
820
- to be used if there is no specification
821
- on the command line.)
822
815
823
816
</para >
824
817
@@ -876,10 +869,10 @@ prog.c
876
869
When you retrieve from the &ARGUMENTS; dictionary,
877
870
it is useful to use the &Python; dictionary
878
871
<methodname >get</methodname > method,
879
- so you can supply a default value if there is not
880
- one given on the command line. Otherwise, the build
872
+ so you can supply a default value if the variable is
873
+ not given on the command line. Otherwise, the build
881
874
will fail with a <exceptionname >KeyError</exceptionname >
882
- if the user does not supply the build option .
875
+ if the variable is not set .
883
876
</para >
884
877
</listitem >
885
878
</itemizedlist >
@@ -1288,7 +1281,7 @@ vars = Variables('custom.py', ARGUMENTS)
1288
1281
<para >
1289
1282
1290
1283
&SCons; provides a number of convenience functions
1291
- that provide pre-made behavior definitions
1284
+ that provide behavior definitions
1292
1285
for various types of command-line build variables.
1293
1286
These functions all return a tuple which is ready
1294
1287
to be passed to the &Add; or &AddVariables; method call.
0 commit comments