From 2bebddefc018ff28572bdba0581cb1ffabd494e4 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Sun, 26 Jul 2015 13:39:34 +0900 Subject: [PATCH] Do not print the entire --help on invalid option --- src/options.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/options.go b/src/options.go index 5ab511d..983a7d3 100644 --- a/src/options.go +++ b/src/options.go @@ -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) {