mirror of
https://github.com/spf13/cobra
synced 2025-05-06 13:27:26 +00:00
added '[' ']' to zshCompQuoteFlagDescription
This commit is contained in:
parent
21f39ca07e
commit
f153050c5a
1 changed files with 3 additions and 1 deletions
|
@ -332,5 +332,7 @@ func zshCompFlagCouldBeSpecifiedMoreThenOnce(f *pflag.Flag) bool {
|
|||
}
|
||||
|
||||
func zshCompQuoteFlagDescription(s string) string {
|
||||
return strings.Replace(s, "'", `'\''`, -1)
|
||||
return strings.NewReplacer("'", `'\''`,
|
||||
"[", `\[`,
|
||||
"]", `\]`).Replace(s)
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue