Do not print the entire --help on invalid option

This commit is contained in:
Junegunn Choi 2015-07-26 13:39:34 +09:00
parent fdbf3d3fec
commit 2bebddefc0

View File

@ -181,7 +181,7 @@ func help(ok int) {
func errorExit(msg string) {
os.Stderr.WriteString(msg + "\n")
help(1)
os.Exit(1)
}
func optString(arg string, prefixes ...string) (bool, string) {