Output --help message to standard output

Close #1554
This commit is contained in:
Junegunn Choi 2019-04-21 18:02:34 +09:00
parent 8eea45ef50
commit ef492f6178
No known key found for this signature in database
GPG Key ID: 254BC280FEF9C627

View File

@ -252,7 +252,7 @@ func defaultOptions() *Options {
}
func help(code int) {
os.Stderr.WriteString(usage)
os.Stdout.WriteString(usage)
os.Exit(code)
}