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:
|
Node options that are allowed are:
|
||||||
- `--enable-fips`
|
- `--enable-fips`
|
||||||
|
`--experimental-modules`
|
||||||
|
`--experimental-repl-await`
|
||||||
|
`--experimental-vm-modules`
|
||||||
|
`--experimental-worker`
|
||||||
- `--force-fips`
|
- `--force-fips`
|
||||||
- `--icu-data-dir`
|
- `--icu-data-dir`
|
||||||
|
- `--inspect`
|
||||||
- `--inspect-brk`
|
- `--inspect-brk`
|
||||||
- `--inspect-port`
|
- `--inspect-port`
|
||||||
- `--inspect`
|
`--loader`
|
||||||
|
`--napi-modules`
|
||||||
- `--no-deprecation`
|
- `--no-deprecation`
|
||||||
|
`--no-force-async-hooks-checks`
|
||||||
- `--no-warnings`
|
- `--no-warnings`
|
||||||
- `--openssl-config`
|
- `--openssl-config`
|
||||||
|
`--pending-deprecation`
|
||||||
- `--redirect-warnings`
|
- `--redirect-warnings`
|
||||||
- `--require`, `-r`
|
- `--require`, `-r`
|
||||||
- `--throw-deprecation`
|
- `--throw-deprecation`
|
||||||
- `--tls-cipher-list`
|
- `--tls-cipher-list`
|
||||||
- `--trace-deprecation`
|
- `--trace-deprecation`
|
||||||
- `--trace-events-categories`
|
- `--trace-event-categories`
|
||||||
- `--trace-events-enabled`
|
|
||||||
- `--trace-event-file-pattern`
|
- `--trace-event-file-pattern`
|
||||||
|
- `--trace-events-enabled`
|
||||||
- `--trace-sync-io`
|
- `--trace-sync-io`
|
||||||
- `--trace-warnings`
|
- `--trace-warnings`
|
||||||
- `--track-heap-objects`
|
- `--track-heap-objects`
|
||||||
|
@ -3151,6 +3151,7 @@ static void CheckIfAllowedInEnv(const char* exe, bool is_env,
|
|||||||
|
|
||||||
static const char* whitelist[] = {
|
static const char* whitelist[] = {
|
||||||
// Node options, sorted in `node --help` order for ease of comparison.
|
// Node options, sorted in `node --help` order for ease of comparison.
|
||||||
|
// Please, update NODE_OPTIONS section in cli.md if changed.
|
||||||
"--enable-fips",
|
"--enable-fips",
|
||||||
"--experimental-modules",
|
"--experimental-modules",
|
||||||
"--experimental-repl-await",
|
"--experimental-repl-await",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user