Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cli: add alias for report-directory to make it consistent #33587

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion doc/api/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -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-directory=directory`, `report-dir=directory`
AshCripps marked this conversation as resolved.
Show resolved Hide resolved
<!-- YAML
added: v11.8.0
changes:
Expand Down Expand Up @@ -1245,6 +1245,7 @@ Node.js options that are allowed are:
* `--prof-process`
* `--redirect-warnings`
* `--report-compact`
* `--report-dir`
BridgeAR marked this conversation as resolved.
Show resolved Hide resolved
* `--report-directory`
* `--report-filename`
* `--report-on-fatalerror`
Expand Down
2 changes: 1 addition & 1 deletion doc/node.1
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ Write
.Sy diagnostic reports
in a compact format, single-line JSON.
.
.It Fl -report-directory
.It Fl -report-directory Fl -report-dir
AshCripps marked this conversation as resolved.
Show resolved Hide resolved
Location at which the
.Sy diagnostic report
will be generated.
Expand Down
3 changes: 2 additions & 1 deletion src/node_options.cc
Original file line number Diff line number Diff line change
Expand Up @@ -667,9 +667,10 @@ PerProcessOptionsParser::PerProcessOptionsParser(
kAllowedInEnvironment);
AddOption("--report-directory",
"define custom report pathname."
" (default: current working directory of Node.js process)",
" (default: current working directory)",
&PerProcessOptions::report_directory,
kAllowedInEnvironment);
AddAlias("--report-dir", "--report-directory");
AshCripps marked this conversation as resolved.
Show resolved Hide resolved
AddOption("--report-filename",
"define custom report file name."
" (default: YYYYMMDD.HHMMSS.PID.SEQUENCE#.txt)",
Expand Down