mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-27 04:40:59 +01:00
manual/9897
This commit is contained in:
parent
8fb50dcf4f
commit
d726746c3d
17 changed files with 65 additions and 33 deletions
|
|
@ -67,7 +67,7 @@ if (( long )); then
|
|||
# those hyphens and anything from the space or comma after the
|
||||
# option up to the end.
|
||||
|
||||
lopts=("--${(@)^${(@)${(@)${(@M)${(@ps:\n:j:\n:)${(@)${(@M)${(@f)$(${~words[1]} --help 2>&1)//\[--/
|
||||
lopts=("--${(@)^${(@)${(@)${(@M)${(@ps:\n:j:\n:)${(@)${(@M)${(@f)$(_call options ${~words[1]} --help 2>&1)//\[--/
|
||||
--}:#[ ]#-*}//,/
|
||||
}}:#[ ]#--*}#*--}%%[], ]*}:#}")
|
||||
lopts=( "${(@)lopts:#--}" )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue