mirror of
https://github.com/spf13/cobra
synced 2024-12-28 07:17:06 +00:00
Fixed completion of dash parameters arguments (#415)
This commit is contained in:
parent
7aeaa2cce6
commit
5deb57bbca
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue