| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 7c3883c commit 2f36f8e
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -3057,6 +3057,10 @@ Use `--watch-path` to specify what paths to watch. | |||
| 3057 | 3057 | This flag cannot be combined with | |
| 3058 | 3058 | `--check`, `--eval`, `--interactive`, or the REPL. | |
| 3059 | 3059 | ||
| 3060 | + Note: The `--watch` flag requires a file path as an argument and is incompatible | ||
| 3061 | + with `--run` or inline script input, as `--run` takes precedence and ignores watch | ||
| 3062 | + mode. If no file is provided, Node.js will exit with status code `9`. | ||
| 3063 | + | ||
| 3060 | 3064 | ```bash | |
| 3061 | 3065 | node --watch index.js | |
| 3062 | 3066 | ``` | |
@@ -3082,6 +3086,9 @@ combination with `--watch`. | |||
| 3082 | 3086 | This flag cannot be combined with | |
| 3083 | 3087 | `--check`, `--eval`, `--interactive`, `--test`, or the REPL. | |
| 3084 | 3088 | ||
| 3089 | + Note: Using `--watch-path` implicitly enables `--watch`, which requires a file path | ||
| 3090 | + and is incompatible with `--run`, as `--run` takes precedence and ignores watch mode. | ||
| 3091 | + | ||
| 3085 | 3092 | ```bash | |
| 3086 | 3093 | node --watch-path=./src --watch-path=./tests index.js | |
| 3087 | 3094 | ``` | |
| Back | FazBrowse Home | New Git URL |
0 commit comments