cli: add alias for report-directory to make it consistent
Currently every other cli option uses "dir" to reference a directory so add an alias to allow for conistency. PR-URL: https://github.com/nodejs/node/pull/33587 Reviewed-By: Sam Roberts <vieuxtech@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
This commit is contained in:
parent
5e77c67369
commit
697bcd9e3f
@ -639,7 +639,7 @@ Write reports in a compact format, single-line JSON, more easily consumable
|
||||
by log processing systems than the default multi-line format designed for
|
||||
human consumption.
|
||||
|
||||
### `--report-directory=directory`
|
||||
### --report-dir=directory`, `report-directory=directory`
|
||||
<!-- YAML
|
||||
added: v11.8.0
|
||||
changes:
|
||||
@ -1245,7 +1245,7 @@ Node.js options that are allowed are:
|
||||
* `--prof-process`
|
||||
* `--redirect-warnings`
|
||||
* `--report-compact`
|
||||
* `--report-directory`
|
||||
* `--report-dir`, `--report-directory`
|
||||
* `--report-filename`
|
||||
* `--report-on-fatalerror`
|
||||
* `--report-on-signal`
|
||||
|
@ -294,7 +294,7 @@ Write
|
||||
.Sy diagnostic reports
|
||||
in a compact format, single-line JSON.
|
||||
.
|
||||
.It Fl -report-directory
|
||||
.It Fl -report-dir Fl -report-directory
|
||||
Location at which the
|
||||
.Sy diagnostic report
|
||||
will be generated.
|
||||
|
@ -664,11 +664,12 @@ PerProcessOptionsParser::PerProcessOptionsParser(
|
||||
"output compact single-line JSON",
|
||||
&PerProcessOptions::report_compact,
|
||||
kAllowedInEnvironment);
|
||||
AddOption("--report-directory",
|
||||
AddOption("--report-dir",
|
||||
"define custom report pathname."
|
||||
" (default: current working directory of Node.js process)",
|
||||
" (default: current working directory)",
|
||||
&PerProcessOptions::report_directory,
|
||||
kAllowedInEnvironment);
|
||||
AddAlias("--report-directory", "--report-dir");
|
||||
AddOption("--report-filename",
|
||||
"define custom report file name."
|
||||
" (default: YYYYMMDD.HHMMSS.PID.SEQUENCE#.txt)",
|
||||
|
Loading…
x
Reference in New Issue
Block a user