fix: suppress help msg on error
This commit is contained in:
parent
d5f8202c05
commit
a71fc16263
1 changed files with 4 additions and 1 deletions
5
vvin.go
5
vvin.go
|
@ -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 (
|
||||
|
|
Loading…
Reference in a new issue