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:
Vse Mozhet Byt 2018-06-09 12:50:31 +03:00 committed by Anna Henningsen
parent 690475958e
commit 52bb84b47d
No known key found for this signature in database
GPG Key ID: 9C63F3A6CD2AD8F9
2 changed files with 12 additions and 3 deletions

View File

@ -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`

View File

@ -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",