Skip to content

Commit 80dec98

Browse files
dario-piotrowicztargos
authored andcommitted
doc: add all watch-mode related flags to node.1
PR-URL: #58719 Reviewed-By: Yagiz Nizipli <[email protected]>
1 parent fe17f5d commit 80dec98

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

doc/node.1

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -618,6 +618,19 @@ Set V8's thread pool size which will be used to allocate background jobs.
618618
If set to 0 then V8 will choose an appropriate size of the thread pool based on the number of online processors.
619619
If the value provided is larger than V8's maximum, then the largest value will be chosen.
620620
.
621+
.It Fl -watch
622+
Starts Node.js in watch mode. When in watch mode, changes in the watched files cause the Node.js process to restart.
623+
624+
By default, watch mode will watch the entry point and any required or imported module. Use --watch-path to specify what paths to watch.
625+
.
626+
.It Fl -watch-path
627+
Starts Node.js in watch mode and specifies what paths to watch. When in watch mode, changes in the watched paths cause the Node.js process to restart.
628+
629+
This will turn off watching of required or imported modules, even when used in combination with --watch.
630+
.
631+
.It Fl -watch-kill-signal
632+
Customizes the signal sent to the process on watch mode restarts.
633+
.
621634
.It Fl -zero-fill-buffers
622635
Automatically zero-fills all newly allocated Buffer and SlowBuffer instances.
623636
.

0 commit comments

Comments
 (0)