Open
Description
bastien@portable2015-bastien:~/Documents/Personnel/soft/debian/js/node-tap-mocha-reporter/node-tap-mocha-reporter/debian/patches$ cat 0003-Support-a-help-option.patch
From 94f8c101f7a55e7ad7d7df7a77db9277ffdc280d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Bastien=20ROUCARI=C3=88S?= <[email protected]>
Date: Tue, 22 Aug 2017 14:46:56 +0200
Subject: 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))
Metadata
Metadata
Assignees
Labels
No labels