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

misleading command line help docs for "unhandled-rejections=mode" in "node --help server" #32796

Closed
wahome opened this issue Apr 12, 2020 · 1 comment

Comments

@wahome
Copy link

wahome commented Apr 12, 2020

[command]

node --help server

[output]
...
--unhandled-rejections=...
define unhandled rejections behavior. Options are 'strict' (raise an error), 'warn' (enforce warnings) or 'none' (silence warnings)
...

[expected]
strict: Raise the unhandled rejection as an uncaught exception.
warn: Always trigger a warning, no matter if the unhandledRejection hook is set or not but do not print the deprecation warning.
none: Silence all warnings.

[reference]
https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode

[setup]
....
node v12.16.1
macOS v10.15.3 (catalina)

@himself65
Copy link
Member

I think the short brief is better for user reading, so have some differences with its doc. What's more, the original PR seems like intentionally for this.

If you have a better description, PR welcome.

Refs: #26599

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants