diff options
Diffstat (limited to 'node_modules/nyc/lib/commands/instrument.js')
-rw-r--r-- | node_modules/nyc/lib/commands/instrument.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/node_modules/nyc/lib/commands/instrument.js b/node_modules/nyc/lib/commands/instrument.js index 6ff4a5222..cf1e97461 100644 --- a/node_modules/nyc/lib/commands/instrument.js +++ b/node_modules/nyc/lib/commands/instrument.js @@ -11,7 +11,6 @@ exports.describe = 'instruments a file or a directory tree and writes the instru exports.builder = function (yargs) { return yargs - .usage('$0 instrument <input> [output]') .option('require', { alias: 'i', default: [], @@ -27,6 +26,11 @@ exports.builder = function (yargs) { type: 'boolean', description: 'should nyc detect and handle source maps?' }) + .option('produce-source-map', { + default: false, + type: 'boolean', + description: "should nyc's instrumenter produce source maps?" + }) .option('instrument', { default: true, type: 'boolean', @@ -44,6 +48,7 @@ exports.handler = function (argv) { var nyc = new NYC({ instrumenter: argv.instrumenter, sourceMap: argv.sourceMap, + produceSourceMap: argv.produceSourceMap, extension: argv.extension, require: argv.require }) |