fix: suppress help msg on error

This commit is contained in:
ShuheiKubota 2019-11-10 12:00:13 +09:00
parent d5f8202c05
commit a71fc16263

View file

@ -223,7 +223,10 @@ func main() {
app.Version = Version
app.Usage = ``
app.Copyright = "(C) 2019 Shuhei Kubota"
app.Run(os.Args)
app.SuppressErrorOutput = true
if err := app.Run(os.Args); err != nil {
fmt.Fprintln(os.Stderr, err)
}
}
var (