Add flags_completion as without @ format to _filedir

This commit is contained in:
Kenjiro Nakayama 2015-05-05 01:06:13 +09:00
parent 3ee9552eeb
commit 8cdd1fe825

View file

@ -214,7 +214,7 @@ func writeFlagHandler(name string, annotations map[string][]string, out *bytes.B
fmt.Fprintf(out, " flags_with_completion+=(%q)\n", name)
ext := strings.Join(value, "|")
ext = "_filedir '@(" + ext + ")'"
ext = "_filedir " + ext
fmt.Fprintf(out, " flags_completion+=(%q)\n", ext)
}
}