diff --git a/src/node_options.cc b/src/node_options.cc index 2a67800ef172c0..0ca1937b525fbb 100644 --- a/src/node_options.cc +++ b/src/node_options.cc @@ -500,8 +500,12 @@ EnvironmentOptionsParser::EnvironmentOptionsParser() { &EnvironmentOptions::trace_warnings, kAllowedInEnvironment); AddOption("--unhandled-rejections", - "define unhandled rejections behavior. Options are 'strict' (raise " - "an error), 'warn' (enforce warnings) or 'none' (silence warnings)", + "define unhandled rejections behavior. Options are 'strict' " + "(always raise an error), 'throw' (raise an error unless " + "'unhandledRejection' hook is set; this is the default), 'warn' " + "(log a warning), 'none' (silence warnings), " + "'warn-with-error-code' (log a warning and set exit code 1 unless " + "'unhandledRejection' hook is set)", &EnvironmentOptions::unhandled_rejections, kAllowedInEnvironment); AddOption("--verify-base-objects",