diff options
| author | Anna Henningsen <[email protected]> | 2015-04-15 17:11:10 +0200 |
|---|---|---|
| committer | Anna Henningsen <[email protected]> | 2015-12-10 22:14:42 +0100 |
| commit | be2f7b8407e84bd3db1c3d30b2a0b225c9faaf15 (patch) | |
| tree | 1fd3ed200472f5b6c19123ecf3b04aa6b837d869 /index.js | |
| parent | 879fb9e850ef569c37dd255059f0e63b6029281a (diff) | |
| download | node-coveralls-be2f7b8407e84bd3db1c3d30b2a0b225c9faaf15.tar.xz node-coveralls-be2f7b8407e84bd3db1c3d30b2a0b225c9faaf15.zip | |
Use minimist to parse command line options
The command line options are made available as a object
via `index.options`
Diffstat (limited to 'index.js')
| -rw-r--r-- | index.js | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -1,3 +1,12 @@ +var minimist = require('minimist'); + +// this needs to go before the other require()s so that +// the other files can already use index.options +exports.options = minimist(process.argv.slice(2), { + boolean: ['verbose', 'stdout'], + alias: { 'v': 'verbose', 's': 'stdout' } +}); + var dir = './lib/'; exports.convertLcovToCoveralls = require(dir + 'convertLcovToCoveralls'); exports.sendToCoveralls = require(dir + 'sendToCoveralls'); |
