Skip to content

Commit 268a1ff

Browse files
Gabriel Schulhofaddaleax
Gabriel Schulhof
authored andcommitted
src: mention that node options are space-separated
The documentation does not mention that the value of NODE_OPTIONS is a space-separated list. PR-URL: #14709 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Khaidi Chu <[email protected]> Reviewed-By: Vse Mozhet Byt <[email protected]> Reviewed-By: Gibson Fahnestock <[email protected]>
1 parent 20fb690 commit 268a1ff

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

doc/api/cli.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -433,10 +433,10 @@ When set to `1`, process warnings are silenced.
433433
added: v8.0.0
434434
-->
435435

436-
`options...` are interpreted as if they had been specified on the command line
437-
before the actual command line (so they can be overridden). Node will exit with
438-
an error if an option that is not allowed in the environment is used, such as
439-
`-p` or a script file.
436+
A space-separated list of command line options. `options...` are interpreted as
437+
if they had been specified on the command line before the actual command line
438+
(so they can be overridden). Node will exit with an error if an option that is
439+
not allowed in the environment is used, such as `-p` or a script file.
440440

441441
Node options that are allowed are:
442442
- `--enable-fips`

doc/node.1

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -278,10 +278,10 @@ When set to \fI1\fR, process warnings are silenced.
278278

279279
.TP
280280
.BR NODE_OPTIONS =\fIoptions...\fR
281-
\fBoptions...\fR are interpreted as if they had been specified on the command
282-
line before the actual command line (so they can be overridden). Node will exit
283-
with an error if an option that is not allowed in the environment is used, such
284-
as \fB-p\fR or a script file.
281+
A space-separated list of command line options. \fBoptions...\fR are interpreted
282+
as if they had been specified on the command line before the actual command line
283+
(so they can be overridden). Node will exit with an error if an option that is
284+
not allowed in the environment is used, such as \fB-p\fR or a script file.
285285

286286
.TP
287287
.BR NODE_PATH =\fIpath\fR[:\fI...\fR]

src/node.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3713,6 +3713,7 @@ static void PrintHelp() {
37133713
"NODE_NO_WARNINGS set to 1 to silence process warnings\n"
37143714
#if !defined(NODE_WITHOUT_NODE_OPTIONS)
37153715
"NODE_OPTIONS set CLI options in the environment\n"
3716+
" via a space-separated list\n"
37163717
#endif
37173718
#ifdef _WIN32
37183719
"NODE_PATH ';'-separated list of directories\n"

0 commit comments

Comments
 (0)