summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--usage.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/usage.go b/usage.go
index 82962c8..824f0eb 100644
--- a/usage.go
+++ b/usage.go
@@ -12,7 +12,7 @@ import (
// Fail prints usage information to stderr and exits with non-zero status
func (p *Parser) Fail(msg string) {
p.WriteUsage(os.Stderr)
- fmt.Println("error:", msg)
+ fmt.Fprintln(os.Stderr, "error:", msg)
os.Exit(-1)
}