mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2024-11-22 21:05:09 +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) {
|
func errorExit(msg string) {
|
||||||
os.Stderr.WriteString(msg + "\n")
|
os.Stderr.WriteString(msg + "\n")
|
||||||
help(1)
|
os.Exit(1)
|
||||||
}
|
}
|
||||||
|
|
||||||
func optString(arg string, prefixes ...string) (bool, string) {
|
func optString(arg string, prefixes ...string) (bool, string) {
|
||||||
|
Loading…
Reference in New Issue
Block a user