summaryrefslogtreecommitdiff
path: root/usage.go
diff options
context:
space:
mode:
authorAlex Flint <[email protected]>2021-04-19 21:03:43 -0700
committerAlex Flint <[email protected]>2021-04-19 21:03:43 -0700
commitfe4a138ac8c39cb00bbee7279a0957897ab88fae (patch)
tree02b48894c636a05751125c495d8325dd2f92fe4f /usage.go
parent6a01a15f75472271568c732c1191e9d33a5fc54c (diff)
test coverage 100% !!
Diffstat (limited to 'usage.go')
-rw-r--r--usage.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/usage.go b/usage.go
index 231476b..c121c45 100644
--- a/usage.go
+++ b/usage.go
@@ -11,7 +11,11 @@ import (
const colWidth = 25
// to allow monkey patching in tests
-var stderr = os.Stderr
+var (
+ stdout io.Writer = os.Stdout
+ stderr io.Writer = os.Stderr
+ osExit = os.Exit
+)
// Fail prints usage information to stderr and exits with non-zero status
func (p *Parser) Fail(msg string) {