mirror of
https://github.com/junegunn/fzf.git
synced 2025-11-14 06:13:47 -05:00
Do not print the entire --help on invalid option
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user