Skip to content

Commit 4cafd24

Browse files
committed
doc: node inspect port 0 description when help is printed
this is not clearly documented anywhere and is an incredibly helpful tool for CLI debugging.
1 parent 4a26e2d commit 4cafd24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/internal/debugger/inspect.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ function startInspect(argv = ArrayPrototypeSlice(process.argv, 2),
338338

339339
process.stderr.write(`Usage: ${invokedAs} script.js\n` +
340340
` ${invokedAs} <host>:<port>\n` +
341-
` ${invokedAs} --port=<port>\n` +
341+
` ${invokedAs} --port=<port> Use 0 for random port assignment\n` +
342342
` ${invokedAs} -p <pid>\n`);
343343
process.exit(kInvalidCommandLineArgument);
344344
}

0 commit comments

Comments
 (0)