Skip to content

Commit 51481a3

Browse files
arcanisaddaleax
authored andcommitted
Updates the wording
1 parent b659b46 commit 51481a3

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

doc/api/cli.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -774,9 +774,11 @@ if they had been specified on the command line before the actual command line
774774
(so they can be overridden). Node.js will exit with an error if an option
775775
that is not allowed in the environment is used, such as `-p` or a script file.
776776

777-
In case an option happens to contain a space or a backslash (for example within
778-
the path passed to `--require`), they must be escaped using an additional
779-
backslash.
777+
In case an option value happens to contain a space (for example a path listed in
778+
`--require`), it must be escaped using double quotes. For example:
779+
```
780+
--require "./my path/file.js"
781+
```
780782

781783
Node.js options that are allowed are:
782784
- `--diagnostic-report-directory`

0 commit comments

Comments
 (0)