diff options
| author | Nick Merwin <[email protected]> | 2015-12-10 12:11:25 -0800 |
|---|---|---|
| committer | Nick Merwin <[email protected]> | 2015-12-10 12:11:25 -0800 |
| commit | 62455e648f4e5020ac8ea2efe3bf09696f8d65c5 (patch) | |
| tree | 2a5a5b1a73fd00be056f538ad494111c97331d89 /lib/handleInput.js | |
| parent | ee82dd92ac9b65f069d5ed722c0e241ddc30dcee (diff) | |
| parent | 6d2e7203351b34dd53eed0dee796d93e0e10d4e7 (diff) | |
| download | node-coveralls-62455e648f4e5020ac8ea2efe3bf09696f8d65c5.tar.xz node-coveralls-62455e648f4e5020ac8ea2efe3bf09696f8d65c5.zip | |
Merge pull request #76 from jacob-meacham/feature/user-options
allow users to pass options through.
Diffstat (limited to 'lib/handleInput.js')
| -rw-r--r-- | lib/handleInput.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/handleInput.js b/lib/handleInput.js index 5f88394..845bfad 100644 --- a/lib/handleInput.js +++ b/lib/handleInput.js @@ -1,9 +1,10 @@ var index = require('../index'); var logger = require('./logger')(); -function handleInput(input, cb) { +function handleInput(input, cb, userOptions) { logger.debug(input); - var options = index.getOptions(function(err, options){ + logger.debug('user options ' + userOptions); + index.getOptions(function(err, options){ if (err){ logger.error("error from getOptions"); @@ -33,7 +34,7 @@ function handleInput(input, cb) { cb(null); }); }); - }); + }, userOptions); } module.exports = handleInput; |
