mirror of
https://github.com/spf13/cobra
synced 2024-11-04 12:57:14 +00:00
Add flags_completion as without @ format to _filedir
This commit is contained in:
parent
3ee9552eeb
commit
8cdd1fe825
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue