[Pkg-javascript-commits] [node-tap-mocha-reporter] 130/137: Support a --help option
Bastien Roucariès
rouca at moszumanska.debian.org
Thu Sep 7 09:49:33 UTC 2017
This is an automated email from the git hooks/post-receive script.
rouca pushed a commit to branch master
in repository node-tap-mocha-reporter.
commit a464a8deb8923943f27f49ba9084155074d19712
Author: Bastien ROUCARIÈS <roucaries.bastien at gmail.com>
Date: Tue Aug 22 14:46:56 2017 +0200
Support a --help option
forwarded: yes, https://github.com/lyroyce/mocha-tap-reporter/issues/5
bug: https://github.com/lyroyce/mocha-tap-reporter/issues/5
---
index.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/index.js b/index.js
index 46c5663..8b2fc07 100755
--- a/index.js
+++ b/index.js
@@ -99,7 +99,7 @@ reporter. (Note that some reporters write to files instead of stdout.)
if (require.main === module) {
var type = process.argv[2]
- if (!type)
+ if (!type || type == '--help' || type == '-h')
return usage()
process.stdin.pipe(new Formatter(type))
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-tap-mocha-reporter.git
More information about the Pkg-javascript-commits
mailing list