Skip to content

Commit f3d10ef

Browse files
author
Damien Nadé
committed
argsparse-completion.sh: __argsparse_complete: using __argsparse_complete_get_long
1 parent f48b9c4 commit f3d10ef

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

argsparse-completion.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,10 @@ __argsparse_complete() {
9696
then
9797
# Complete positionnal arguments
9898
__argsparse_compgen -A file
99-
elif __argsparse_index_of "$prev" "${longs[@]}" >/dev/null && \
100-
argsparse_has_option_property "$option" value
99+
elif long=$(__argsparse_complete_get_long "$prev" "${longs[@]}") && \
100+
argsparse_has_option_property "$long" value
101101
then
102-
__argsparse_complete_value "$option"
102+
__argsparse_complete_value "$long"
103103
else
104104
case "$cur" in
105105
""|-)

0 commit comments

Comments
 (0)