diff --git a/doc/api/cli.md b/doc/api/cli.md index 77dab3f00c9321..94d37739980ec1 100644 --- a/doc/api/cli.md +++ b/doc/api/cli.md @@ -513,22 +513,30 @@ that is not allowed in the environment is used, such as `-p` or a script file. Node options that are allowed are: - `--enable-fips` + `--experimental-modules` + `--experimental-repl-await` + `--experimental-vm-modules` + `--experimental-worker` - `--force-fips` - `--icu-data-dir` +- `--inspect` - `--inspect-brk` - `--inspect-port` -- `--inspect` + `--loader` + `--napi-modules` - `--no-deprecation` + `--no-force-async-hooks-checks` - `--no-warnings` - `--openssl-config` + `--pending-deprecation` - `--redirect-warnings` - `--require`, `-r` - `--throw-deprecation` - `--tls-cipher-list` - `--trace-deprecation` -- `--trace-events-categories` -- `--trace-events-enabled` +- `--trace-event-categories` - `--trace-event-file-pattern` +- `--trace-events-enabled` - `--trace-sync-io` - `--trace-warnings` - `--track-heap-objects` diff --git a/src/node.cc b/src/node.cc index 7cc9131f989339..c7968fd898d0ad 100644 --- a/src/node.cc +++ b/src/node.cc @@ -3151,6 +3151,7 @@ static void CheckIfAllowedInEnv(const char* exe, bool is_env, static const char* whitelist[] = { // Node options, sorted in `node --help` order for ease of comparison. + // Please, update NODE_OPTIONS section in cli.md if changed. "--enable-fips", "--experimental-modules", "--experimental-repl-await",