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

fix(cli): Report error if unwanted positional arguments are received #1100

Merged
merged 1 commit into from May 9, 2019

Commits on May 9, 2019

  1. fix(cli): Report error if unwanted positional arguments are received

    This applies to check-coverage, instrument, merge and report.  Passing
    additional arguments will now cause the help script to be displayed and
    an error exit code.
    
    Unknown flags `nyc report --unknown=1` are still not reported.
    Reporting unknown flags would require additional work as
    `yargs.strict()` causes unknown items from configuration to be reported,
    including flags that are defined for the global command but not a
    sub-command.
    
    Fixes istanbuljs#401
    coreyfarrell committed May 9, 2019
    Copy the full SHA
    364c742 View commit details
    Browse the repository at this point in the history