doc: update NODE_OPTIONS section in cli.md
PR-URL: https://github.com/nodejs/node/pull/21229 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Roman Reiss <me@silverwind.io> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
This commit is contained in:
parent
690475958e
commit
52bb84b47d
@ -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`
|
||||
|
@ -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",
|
||||
|
Loading…
x
Reference in New Issue
Block a user