mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2024-11-05 04:57:50 +00:00
Do not print the entire --help on invalid option
This commit is contained in:
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…
Reference in New Issue
Block a user