mirror of
git://git.code.sf.net/p/zsh/code
synced 2024-09-28 15:01:21 +02:00
23018: parse out section headings from darcs --help.
This commit is contained in:
parent
6d0dc9e0eb
commit
ef3df70c4d
@ -1,3 +1,8 @@
|
||||
2006-11-27 Clint Adams <clint@zsh.org>
|
||||
|
||||
* 23018: Completion/Unix/Command/_darcs: parse out
|
||||
section headings from darcs --help.
|
||||
|
||||
2006-11-19 Peter Stephenson <p.w.stephenson@ntlworld.com>
|
||||
|
||||
* 23008: Src/exec.c: failure to output error message could
|
||||
|
@ -104,8 +104,7 @@ else
|
||||
_call_program help-commands darcs --help | while read -A hline; do
|
||||
(( ${#hline} < 2 )) && continue
|
||||
[[ $hline[1] == darcs ]] && continue
|
||||
[[ $hline[1] == Usage: ]] && continue
|
||||
[[ $hline[1] == Use ]] && continue
|
||||
[[ $hline[1] == [A-Z]* ]] && continue
|
||||
cmdlist=( $cmdlist "${hline[1]}:${hline[2,-1]/(#b)([A-Z])(*)./${match[1]:l}$match[2]}" )
|
||||
done
|
||||
arguments=(':commands:(($cmdlist))')
|
||||
|
Loading…
Reference in New Issue
Block a user