From 51481a313f50a8434429221efe104fa70668390f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=ABl=20Nison?= Date: Wed, 3 Apr 2019 19:24:49 +0100 Subject: [PATCH] Updates the wording --- doc/api/cli.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/doc/api/cli.md b/doc/api/cli.md index d9b5127fd082f7..1dbffadcf6d461 100644 --- a/doc/api/cli.md +++ b/doc/api/cli.md @@ -774,9 +774,11 @@ 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 happens to contain a space or a backslash (for example within -the path passed to `--require`), they must be escaped using an additional -backslash. +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: +``` +--require "./my path/file.js" +``` Node.js options that are allowed are: - `--diagnostic-report-directory`