|
|
@ -12,7 +12,7 @@ import ( |
|
|
// Fail prints usage information to stderr and exits with non-zero status
|
|
|
// Fail prints usage information to stderr and exits with non-zero status
|
|
|
func (p *Parser) Fail(msg string) { |
|
|
func (p *Parser) Fail(msg string) { |
|
|
p.WriteUsage(os.Stderr) |
|
|
p.WriteUsage(os.Stderr) |
|
|
fmt.Println("error:", msg) |
|
|
|
|
|
|
|
|
fmt.Fprintln(os.Stderr, "error:", msg) |
|
|
os.Exit(-1) |
|
|
os.Exit(-1) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|