Skip to content

Commit c1d53f8

Browse files
vsemozhetbyttargos
authored andcommitted
doc: update NODE_OPTIONS section in cli.md
PR-URL: #21229 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Roman Reiss <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]>
1 parent 7fa1344 commit c1d53f8

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

doc/api/cli.md

+11-3
Original file line numberDiff line numberDiff line change
@@ -513,22 +513,30 @@ that is not allowed in the environment is used, such as `-p` or a script file.
513513

514514
Node options that are allowed are:
515515
- `--enable-fips`
516+
`--experimental-modules`
517+
`--experimental-repl-await`
518+
`--experimental-vm-modules`
519+
`--experimental-worker`
516520
- `--force-fips`
517521
- `--icu-data-dir`
522+
- `--inspect`
518523
- `--inspect-brk`
519524
- `--inspect-port`
520-
- `--inspect`
525+
`--loader`
526+
`--napi-modules`
521527
- `--no-deprecation`
528+
`--no-force-async-hooks-checks`
522529
- `--no-warnings`
523530
- `--openssl-config`
531+
`--pending-deprecation`
524532
- `--redirect-warnings`
525533
- `--require`, `-r`
526534
- `--throw-deprecation`
527535
- `--tls-cipher-list`
528536
- `--trace-deprecation`
529-
- `--trace-events-categories`
530-
- `--trace-events-enabled`
537+
- `--trace-event-categories`
531538
- `--trace-event-file-pattern`
539+
- `--trace-events-enabled`
532540
- `--trace-sync-io`
533541
- `--trace-warnings`
534542
- `--track-heap-objects`

src/node.cc

+1
Original file line numberDiff line numberDiff line change
@@ -3165,6 +3165,7 @@ static void CheckIfAllowedInEnv(const char* exe, bool is_env,
31653165

31663166
static const char* whitelist[] = {
31673167
// Node options, sorted in `node --help` order for ease of comparison.
3168+
// Please, update NODE_OPTIONS section in cli.md if changed.
31683169
"--enable-fips",
31693170
"--experimental-modules",
31703171
"--experimental-repl-await",

0 commit comments

Comments
 (0)