From cff4124cc41f55e84da47525449249c1d7d27e85 Mon Sep 17 00:00:00 2001 From: Gabriel Schulhof Date: Wed, 9 Aug 2017 09:58:00 +0300 Subject: [PATCH] src: mention that node options are space-separated The documentation does not mention that the value of NODE_OPTIONS is a space-separated list. --- doc/api/cli.md | 8 ++++---- doc/node.1 | 8 ++++---- src/node.cc | 1 + 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/doc/api/cli.md b/doc/api/cli.md index 666594148090a9..8b9edea53706b2 100644 --- a/doc/api/cli.md +++ b/doc/api/cli.md @@ -440,10 +440,10 @@ When set to `1`, process warnings are silenced. added: v8.0.0 --> -`options...` are interpreted as if they had been specified on the command line -before the actual command line (so they can be overridden). Node will exit with -an error if an option that is not allowed in the environment is used, such as -`-p` or a script file. +A space-separated list of command line options. `options...` are interpreted as +if they had been specified on the command line before the actual command line +(so they can be overridden). Node will exit with an error if an option that is +not allowed in the environment is used, such as `-p` or a script file. Node options that are allowed are: - `--enable-fips` diff --git a/doc/node.1 b/doc/node.1 index c97a9d812d5a78..cf79ce33f929df 100644 --- a/doc/node.1 +++ b/doc/node.1 @@ -282,10 +282,10 @@ When set to \fI1\fR, process warnings are silenced. .TP .BR NODE_OPTIONS =\fIoptions...\fR -\fBoptions...\fR are interpreted as if they had been specified on the command -line before the actual command line (so they can be overridden). Node will exit -with an error if an option that is not allowed in the environment is used, such -as \fB-p\fR or a script file. +A space-separated list of command line options. \fBoptions...\fR are interpreted +as if they had been specified on the command line before the actual command line +(so they can be overridden). Node will exit with an error if an option that is +not allowed in the environment is used, such as \fB-p\fR or a script file. .TP .BR NODE_PATH =\fIpath\fR[:\fI...\fR] diff --git a/src/node.cc b/src/node.cc index 5b1b9cadd93cb3..92dfbab322db07 100644 --- a/src/node.cc +++ b/src/node.cc @@ -3721,6 +3721,7 @@ static void PrintHelp() { "NODE_NO_WARNINGS set to 1 to silence process warnings\n" #if !defined(NODE_WITHOUT_NODE_OPTIONS) "NODE_OPTIONS set CLI options in the environment\n" + " via a space-separated list\n" #endif #ifdef _WIN32 "NODE_PATH ';'-separated list of directories\n"