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: https://github.com/nodejs/node/pull/14709
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Khaidi Chu <i@2333.moe>
Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
This commit is contained in:
Gabriel Schulhof 2017-08-09 09:58:00 +03:00
parent 7294f57c0d
commit 6fe72c82d2
3 changed files with 9 additions and 8 deletions

View File

@ -440,10 +440,10 @@ When set to `1`, process warnings are silenced.
added: v8.0.0 added: v8.0.0
--> -->
`options...` are interpreted as if they had been specified on the command line A space-separated list of command line options. `options...` are interpreted as
before the actual command line (so they can be overridden). Node will exit with if they had been specified on the command line before the actual command line
an error if an option that is not allowed in the environment is used, such as (so they can be overridden). Node will exit with an error if an option that is
`-p` or a script file. not allowed in the environment is used, such as `-p` or a script file.
Node options that are allowed are: Node options that are allowed are:
- `--enable-fips` - `--enable-fips`

View File

@ -282,10 +282,10 @@ When set to \fI1\fR, process warnings are silenced.
.TP .TP
.BR NODE_OPTIONS =\fIoptions...\fR .BR NODE_OPTIONS =\fIoptions...\fR
\fBoptions...\fR are interpreted as if they had been specified on the command A space-separated list of command line options. \fBoptions...\fR are interpreted
line before the actual command line (so they can be overridden). Node will exit as if they had been specified on the command line before the actual command line
with an error if an option that is not allowed in the environment is used, such (so they can be overridden). Node will exit with an error if an option that is
as \fB-p\fR or a script file. not allowed in the environment is used, such as \fB-p\fR or a script file.
.TP .TP
.BR NODE_PATH =\fIpath\fR[:\fI...\fR] .BR NODE_PATH =\fIpath\fR[:\fI...\fR]

View File

@ -3722,6 +3722,7 @@ static void PrintHelp() {
"NODE_NO_WARNINGS set to 1 to silence process warnings\n" "NODE_NO_WARNINGS set to 1 to silence process warnings\n"
#if !defined(NODE_WITHOUT_NODE_OPTIONS) #if !defined(NODE_WITHOUT_NODE_OPTIONS)
"NODE_OPTIONS set CLI options in the environment\n" "NODE_OPTIONS set CLI options in the environment\n"
" via a space-separated list\n"
#endif #endif
#ifdef _WIN32 #ifdef _WIN32
"NODE_PATH ';'-separated list of directories\n" "NODE_PATH ';'-separated list of directories\n"