forked from mirror/cobra
Add support for plural nouns in bash completion
This commit is contained in:
parent
8092588fb8
commit
ea9a77d312
|
@ -189,6 +189,8 @@ __handle_noun()
|
||||||
|
|
||||||
if __contains_word "${words[c]}" "${must_have_one_noun[@]}"; then
|
if __contains_word "${words[c]}" "${must_have_one_noun[@]}"; then
|
||||||
must_have_one_noun=()
|
must_have_one_noun=()
|
||||||
|
elif __contains_word "${words[c]%s}" "${must_have_one_noun[@]}"; then
|
||||||
|
must_have_one_noun=()
|
||||||
fi
|
fi
|
||||||
|
|
||||||
nouns+=("${words[c]}")
|
nouns+=("${words[c]}")
|
||||||
|
|
Loading…
Reference in New Issue