Skip to content

Commit

Permalink
Switched reporters yargs config to support reporters in package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
rapzo committed Mar 10, 2016
1 parent b5907ad commit 75e76ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/nyc.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ var yargs = require('yargs')
.usage('$0 check-coverage [options]')
.example('$0 check-coverage --lines 95', "check whether the JSON in nyc's output folder meets the thresholds provided")
})
.option('r', {
alias: 'reporter',
.option('reporter', {
alias: 'r',
describe: 'coverage reporter(s) to use',
default: 'text',
global: true
Expand Down

0 comments on commit 75e76ae

Please sign in to comment.