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

feat!: NaN can now be provided as a value for nargs, indicating "at least" one value is expected for array #251

Merged
merged 1 commit into from Mar 2, 2020

Commits on Mar 2, 2020

  1. feat!: further refine how nargs and array behave in conjunction

    Introduces special handling of NaN, which yargs will use rather than 1 to indicate that
    an argument has a required value following the flag.
    
    BREAKING CHANGE: the narg count is now enforced when parsing arrays.
    bcoe committed Mar 2, 2020
    Copy the full SHA
    da43604 View commit details
    Browse the repository at this point in the history