node/lib/internal/process
Michaël Zasso 3c7a7d9ee4
src: allow to negate boolean CLI flags
This change allows all boolean flags to be negated using the `--no-`
prefix.
Flags that are `true` by default (for example `--deprecation`) are
still documented as negations.
With this change, it becomes possible to easily flip the default
value of a boolean flag and to override the value of a flag passed
in the NODE_OPTIONS environment variable.
`process.allowedNodeEnvironmentFlags` contains both the negated and
non-negated versions of boolean flags.

Co-authored-by: Anna Henningsen <anna@addaleax.net>

PR-URL: https://github.com/nodejs/node/pull/39023
Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
Reviewed-By: Michael Dawson <midawson@redhat.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
2021-06-21 18:30:42 -04:00
..
esm_loader.js repl: support --loader option in builtin REPL 2020-07-14 15:21:26 +02:00
execution.js src: print arbitrary javascript exception value in node report 2021-04-29 13:45:34 +02:00
per_thread.js src: allow to negate boolean CLI flags 2021-06-21 18:30:42 -04:00
policy.js lib: flatten access to primordials 2019-11-25 10:28:15 +01:00
promises.js lib: avoid mutating Error.stackTraceLimit when it is not writable 2021-04-15 00:17:16 +02:00
report.js lib: refactor to use validateObject 2021-01-28 12:53:50 +01:00
signal.js process: refactor to use more primordials 2020-11-24 05:27:19 -08:00
task_queues.js process: do not lazily load AsyncResource 2021-04-06 07:46:45 -07:00
warning.js lib: avoid mutating Error.stackTraceLimit when it is not writable 2021-04-15 00:17:16 +02:00
worker_thread_only.js bootstrap: use different scripts to setup different configurations 2019-12-20 22:10:13 +08:00