mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-25 05:10:28 +02:00
make sure caller-supplied explanation takes precedence (10579)
This commit is contained in:
parent
424ad9fc1d
commit
d779b43f42
4 changed files with 16 additions and 6 deletions
|
|
@ -258,8 +258,9 @@ if (( $# )) && comparguments -i "$autod" "$@"; then
|
|||
# Otherwise we call it with the description-arguments.
|
||||
|
||||
eval "action=( $action )"
|
||||
_all_labels arguments expl "$descr" \
|
||||
"$action[1]" "$subopts[@]" "${(@)action[2,-1]}"
|
||||
while _next_label arguments expl "$descr"; do
|
||||
"$action[1]" "$subopts[@]" "$expl[@]" "${(@)action[2,-1]}"
|
||||
done
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
|
|
|||
|
|
@ -141,8 +141,9 @@ if compvalues -i "$@"; then
|
|||
# Otherwise we call it with the description-arguments built above.
|
||||
|
||||
eval "action=( $action )"
|
||||
_all_labels arguments expl "$descr" \
|
||||
"$action[1]" "$subopts[@]" "${(@)action[2,-1]}"
|
||||
while _next_label arguments expl "$descr"; do
|
||||
"$action[1]" "$subopts[@]" "$expl[@]" "${(@)action[2,-1]}"
|
||||
done
|
||||
fi
|
||||
fi
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue