Skip to content

Commit 5b47acc

Browse files
Fishrock123evanlucas
authored andcommitted
doc: v8 options can use either _ or -
This adds docs to the man page and online cli docs that v8 options can be used with either dashes or underscores. Refs: #6377 (comment) PR-URL: #6532 Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent fa94a91 commit 5b47acc

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

doc/api/cli.md

+4
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,10 @@ Process v8 profiler output generated using the v8 option `--prof`.
111111

112112
Print v8 command line options.
113113

114+
Note: v8 options allow words to be separated by both dashes (`-`) or underscores
115+
(`_`).
116+
117+
For example, `--stack-trace-limit` is equivalent to `--stack_trace_limit`.
114118

115119
### `--tls-cipher-list=list`
116120

doc/node.1

+6
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,12 @@ Process v8 profiler output generated using the v8 option \fB\-\-prof\fR
107107
.BR \-\-v8\-options
108108
Print v8 command line options.
109109

110+
Note: v8 options allow words to be separated by both dashes (\fB-\fR) or
111+
underscores (\fB_\fR).
112+
113+
For example, \fB\-\-stack\-trace\-limit\fR is equivalent to
114+
\fB\-\-stack\_trace\_limit\fR
115+
110116
.TP
111117
.BR \-\-v8\-pool\-size =\fInum\fR
112118
Set v8's thread pool size which will be used to allocate background jobs.

0 commit comments

Comments
 (0)