Please sign in to comment.
fix(cli): Report error if unwanted positional arguments are received (#…
…1100) 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 #401
- Loading branch information...
Showing with 33 additions and 21 deletions.