Skip to content

Commit b34c59e

Browse files
committed
doc: clarify context of --run incompatibility
1 parent f6b87b7 commit b34c59e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/api/cli.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -3056,9 +3056,9 @@ Use `--watch-path` to specify what paths to watch.
30563056
This flag cannot be combined with
30573057
`--check`, `--eval`, `--interactive`, or the REPL.
30583058

3059-
Note: The `--watch` flag requires a file path as an argument. It does not support
3060-
being used with `--run` or inline script input. If no file is provided, Node.js will
3061-
exit with status code `9`.
3059+
Note: The `--watch` flag requires a file path as an argument and is incompatible
3060+
with `--run` or inline script input, as `--run` takes precedence and ignores watch
3061+
mode. If no file is provided, Node.js will exit with status code `9`.
30623062

30633063
```bash
30643064
node --watch index.js

0 commit comments

Comments
 (0)