Do not print the entire --help on invalid option

pull/326/head
Junegunn Choi 9 years ago
parent fdbf3d3fec
commit 2bebddefc0

@ -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) {

Loading…
Cancel
Save