diff options
| author | Alex Flint <[email protected]> | 2015-11-11 09:34:05 -0800 |
|---|---|---|
| committer | Alex Flint <[email protected]> | 2015-11-11 09:34:05 -0800 |
| commit | c4704194de65e09b88ebae2f2c81ee4e0a3be5d8 (patch) | |
| tree | 43830596b97d031888cda7c51d42a9dec129c3c5 | |
| parent | 0f9dfa27d10f148f054a2ced60902637650c270a (diff) | |
| parent | df17f4df4588e6ff41b0ff3045382775d6a8f748 (diff) | |
Merge pull request #14 from walle/usage_on_stderr_bug
Fix bug with error not being written to stderr
| -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) } |
