diff options
author | Junegunn Choi <junegunn.c@gmail.com> | 2015-07-26 13:39:34 +0900 |
---|---|---|
committer | Junegunn Choi <junegunn.c@gmail.com> | 2015-07-26 13:39:34 +0900 |
commit | 2bebddefc018ff28572bdba0581cb1ffabd494e4 (patch) | |
tree | 3e65ed1e32aaaf3283bee8727b5369978fd91c5a | |
parent | fdbf3d3fec4121a52a77330bba383c4878547b2a (diff) |
Do not print the entire --help on invalid option
-rw-r--r-- | src/options.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/options.go b/src/options.go index 5ab511dd..983a7d3d 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) { |