Files
node/lib
Michaël Zasso 1bbe66f432 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 20:18:20 +02:00
..
2020-05-24 03:26:21 +02:00
2020-02-18 22:15:50 -08:00
2021-05-27 21:46:48 +08:00
2020-10-21 01:26:34 +02:00
2021-05-19 09:22:56 -07:00
2021-05-09 09:11:38 +02:00
2021-04-16 07:47:46 +02:00
2021-05-24 13:11:50 -07:00
2021-06-14 08:09:17 -07:00
2021-06-01 21:06:18 +02:00
2021-05-12 07:26:22 -07:00
2021-04-30 10:59:28 -07:00
2021-05-15 21:47:55 +02:00
2021-05-19 09:22:56 -07:00
2021-06-07 07:31:34 -07:00
2021-05-19 09:22:56 -07:00
2021-05-19 09:22:56 -07:00