mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-24 05:11:08 +02:00
zsh-workers/7601
This commit is contained in:
parent
229f9ccdc4
commit
f25a524da5
1 changed files with 4 additions and 2 deletions
|
@ -525,6 +525,8 @@ if [[ -z "$def" || "$def" = :* ]]; then
|
||||||
# We either don't have a description for an argument of an option
|
# We either don't have a description for an argument of an option
|
||||||
# or we have a description for a optional argument.
|
# or we have a description for a optional argument.
|
||||||
|
|
||||||
|
opt=yes
|
||||||
|
|
||||||
if [[ -z "$def" ]]; then
|
if [[ -z "$def" ]]; then
|
||||||
|
|
||||||
# If we have none at all, use the one for this argument position.
|
# If we have none at all, use the one for this argument position.
|
||||||
|
@ -535,6 +537,7 @@ if [[ -z "$def" || "$def" = :* ]]; then
|
||||||
optbeg="$nargbeg"
|
optbeg="$nargbeg"
|
||||||
argbeg="$nargbeg"
|
argbeg="$nargbeg"
|
||||||
fromrest=yes
|
fromrest=yes
|
||||||
|
[[ "$def" = \*::* ]] && opt=''
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -542,8 +545,7 @@ if [[ -z "$def" || "$def" = :* ]]; then
|
||||||
# be in a string that starts with an option name and continues with
|
# be in a string that starts with an option name and continues with
|
||||||
# the first argument, test that (again, two loops).
|
# the first argument, test that (again, two loops).
|
||||||
|
|
||||||
opt=yes
|
if [[ -n "$opt" && $#dopts -ne 0 ]]; then
|
||||||
if (( $#dopts )); then
|
|
||||||
|
|
||||||
# Get the option names.
|
# Get the option names.
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue