diff options
Diffstat (limited to 'bin')
| -rwxr-xr-x | bin/coveralls.js | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/bin/coveralls.js b/bin/coveralls.js index 698f177..6f3eb57 100755 --- a/bin/coveralls.js +++ b/bin/coveralls.js @@ -1,6 +1,18 @@ #!/usr/bin/env node var handleInput = require('../lib/handleInput'); +var options = {}; +if (process.argv[2]) { + if (~['-v', '--verbose'].indexOf(process.argv[2])) { + options.verbose = true; + if (process.argv[3]) { + options.filepath = process.argv[3]; + } + } else { + options.filepath = process.argv[2]; + } +} + process.stdin.resume(); process.stdin.setEncoding('utf8'); @@ -11,6 +23,6 @@ process.stdin.on('data', function(chunk) { }); process.stdin.on('end', function() { - handleInput(input); + handleInput(input, options); }); |
