mirror of https://github.com/spf13/cobra.git
Fixed completion of dash parameters arguments (#415)
This commit is contained in:
parent
7aeaa2cce6
commit
5deb57bbca
|
@ -88,8 +88,8 @@ __handle_reply()
|
|||
local index flag
|
||||
flag="${cur%%=*}"
|
||||
__index_of_word "${flag}" "${flags_with_completion[@]}"
|
||||
COMPREPLY=()
|
||||
if [[ ${index} -ge 0 ]]; then
|
||||
COMPREPLY=()
|
||||
PREFIX=""
|
||||
cur="${cur#*=}"
|
||||
${flags_completion[${index}]}
|
||||
|
|
Loading…
Reference in New Issue