Skip to content

Commit daf455d

Browse files
committed
docs: Specify that node.js exits with status code 9 if no file is provided instead of throwing
1 parent bafca21 commit daf455d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/api/cli.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3056,7 +3056,7 @@ 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 being used with `--run` or inline script input. If no file is provided, Node.js will throw an error.
3059+
Note: The `--watch` flag requires a file path as an argument. It does not support being used with `--run` or inline script input. If no file is provided, Node.js will exit with status code 9.
30603060

30613061
```bash
30623062
node --watch index.js

0 commit comments

Comments
 (0)