From 75e76aef1b9bf17cc7994e9a209ba89833d8b1ec Mon Sep 17 00:00:00 2001 From: Rui Pedro Lima Date: Thu, 10 Mar 2016 21:16:54 +0000 Subject: [PATCH] Switched reporters yargs config to support reporters in package.json --- bin/nyc.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/nyc.js b/bin/nyc.js index 966cb7bf0..40d41de06 100755 --- a/bin/nyc.js +++ b/bin/nyc.js @@ -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