Skip to content

Commit

Permalink
doc: update NODE_OPTIONS section in cli.md
Browse files Browse the repository at this point in the history
PR-URL: #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>
  • Loading branch information
vsemozhetbyt authored and targos committed Jun 14, 2018
1 parent 7fa1344 commit c1d53f8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
14 changes: 11 additions & 3 deletions doc/api/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down
1 change: 1 addition & 0 deletions src/node.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3165,6 +3165,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",
Expand Down

0 comments on commit c1d53f8

Please sign in to comment.