[Pkg-javascript-commits] [node-tap-mocha-reporter] 120/137: Support a --help option
Bastien Roucariès
rouca at moszumanska.debian.org
Thu Sep 7 09:49:32 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 e2e575b7be11151ee1c6ef869186505a9a23dd7e
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