diff options
| author | Fredrik Wallgren <[email protected]> | 2015-11-11 10:29:01 +0100 |
|---|---|---|
| committer | Fredrik Wallgren <[email protected]> | 2015-11-11 10:29:01 +0100 |
| commit | df17f4df4588e6ff41b0ff3045382775d6a8f748 (patch) | |
| tree | 9eab3ae94e841f97dcf58a90f46574b6788e6e2d /usage.go | |
| parent | a49bba8533235e33cb82893851edcbc2805a4b77 (diff) | |
Fix bug with error not being written to stderr
Only the usage message was written to stderr, the error was written with
the standard fmt.Println.
Diffstat (limited to 'usage.go')
| -rw-r--r-- | usage.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) } |
