diff options
| author | Arpad Borsos <[email protected]> | 2013-06-02 14:20:12 +0200 |
|---|---|---|
| committer | Arpad Borsos <[email protected]> | 2013-06-02 14:20:12 +0200 |
| commit | 6187392ca1c1bfcbb4d8ced51de35ed2a04bc8a3 (patch) | |
| tree | b0caaa1d5c21933629eb00db58a2ec4bcc8d8929 /bin/coveralls.js | |
| parent | a04d30f7473e93c6390f99090caf5d8a27213dc2 (diff) | |
| download | node-coveralls-6187392ca1c1bfcbb4d8ced51de35ed2a04bc8a3.tar.xz node-coveralls-6187392ca1c1bfcbb4d8ced51de35ed2a04bc8a3.zip | |
Fixes 7: be quiet by default
Diffstat (limited to 'bin/coveralls.js')
| -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); }); |
