summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorMaƫl Nison <mael@fb.com>2018-11-03 10:52:44 -0700
committerAnna Henningsen <anna@addaleax.net>2019-04-17 19:46:00 +0200
commit3ef1512f9e416cc7656b9cd16934dffdee1b11d3 (patch)
tree440c5d413cf9e628c1556a89d2b798acd445403f /doc
parentba74e42000418bf9e8263123fc7291c19e1d5425 (diff)
downloadandroid-node-v8-3ef1512f9e416cc7656b9cd16934dffdee1b11d3.tar.gz
android-node-v8-3ef1512f9e416cc7656b9cd16934dffdee1b11d3.tar.bz2
android-node-v8-3ef1512f9e416cc7656b9cd16934dffdee1b11d3.zip
src: allows escaping NODE_OPTIONS with backslashes
The characters specified within NODE_OPTIONS can now be escaped, which is handy especially in conjunction with `--require` (where the file path might happen to contain spaces that shouldn't cause the option to be split into two). Fixes: https://github.com/nodejs/node/issues/12971 PR-URL: https://github.com/nodejs/node/pull/24065 Reviewed-By: Anna Henningsen <anna@addaleax.net>
Diffstat (limited to 'doc')
-rw-r--r--doc/api/cli.md7
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/api/cli.md b/doc/api/cli.md
index 79f2dcd2ba..a2c92b1334 100644
--- a/doc/api/cli.md
+++ b/doc/api/cli.md
@@ -774,6 +774,13 @@ if they had been specified on the command line before the actual command line
(so they can be overridden). Node.js will exit with an error if an option
that is not allowed in the environment is used, such as `-p` or a script file.
+In case an option value happens to contain a space (for example a path listed in
+`--require`), it must be escaped using double quotes. For example:
+
+```bash
+--require "./my path/file.js"
+```
+
Node.js options that are allowed are:
- `--diagnostic-report-directory`
- `--diagnostic-report-filename`