Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

src: allow to negate boolean CLI flags #39023

Closed
wants to merge 1 commit into from

Commits on Jun 21, 2021

  1. 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>
    targos and addaleax committed Jun 21, 2021
    Configuration menu
    Copy the full SHA
    18183ca View commit details
    Browse the repository at this point in the history