GeezerVison is showing github.com — src: mention that node options are space-separated · tmarshall/node@6fe72c8
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: doc/api/cli.md +4-4Lines changed: 4 additions & 4 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -440,10 +440,10 @@ When set to `1`, process warnings are silenced. |
440 | 440 | added: v8.0.0 |
441 | 441 | --> |
442 | 442 |
|
443 | | -`options...` are interpreted as if they had been specified on the command line |
444 | | -before the actual command line (so they can be overridden). Node will exit with |
445 | | -an error if an option that is not allowed in the environment is used, such as |
446 | | -`-p` or a script file. |
| 443 | +A space-separated list of command line options. `options...` are interpreted as |
| 444 | +if they had been specified on the command line before the actual command line |
| 445 | +(so they can be overridden). Node will exit with an error if an option that is |
| 446 | +not allowed in the environment is used, such as `-p` or a script file. |
447 | 447 |
|
448 | 448 | Node options that are allowed are: |
449 | 449 | - `--enable-fips` |
|
Collapse file
Copy file name to clipboardExpand all lines: doc/node.1 +4-4Lines changed: 4 additions & 4 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -282,10 +282,10 @@ When set to \fI1\fR, process warnings are silenced. |
282 | 282 |
|
283 | 283 | .TP |
284 | 284 | .BR NODE_OPTIONS =\fIoptions...\fR |
285 | | -\fBoptions...\fR are interpreted as if they had been specified on the command |
286 | | -line before the actual command line (so they can be overridden). Node will exit |
287 | | -with an error if an option that is not allowed in the environment is used, such |
288 | | -as \fB-p\fR or a script file. |
| 285 | +A space-separated list of command line options. \fBoptions...\fR are interpreted |
| 286 | +as if they had been specified on the command line before the actual command line |
| 287 | +(so they can be overridden). Node will exit with an error if an option that is |
| 288 | +not allowed in the environment is used, such as \fB-p\fR or a script file. |
289 | 289 |
|
290 | 290 | .TP |
291 | 291 | .BR NODE_PATH =\fIpath\fR[:\fI...\fR] |
|
Collapse file
Copy file name to clipboardExpand all lines: src/node.cc +1Lines changed: 1 addition & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -3722,6 +3722,7 @@ static void PrintHelp() { |
3722 | 3722 | "NODE_NO_WARNINGS set to 1 to silence process warnings\n" |
3723 | 3723 | #if !defined(NODE_WITHOUT_NODE_OPTIONS) |
3724 | 3724 | "NODE_OPTIONS set CLI options in the environment\n" |
| 3725 | + " via a space-separated list\n" |
3725 | 3726 | #endif |
3726 | 3727 | #ifdef _WIN32 |
3727 | 3728 | "NODE_PATH ';'-separated list of directories\n" |
|