Skip to content

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

Closed
@wahome

Description

@wahome

[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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions