diff options
| author | Clint Adams <clint@users.sourceforge.net> | 2006-11-27 04:08:41 +0000 |
|---|---|---|
| committer | Clint Adams <clint@users.sourceforge.net> | 2006-11-27 04:08:41 +0000 |
| commit | ef3df70c4d4d510ffa6caf193c4e3ef2f925b8f1 (patch) | |
| tree | 693598fcc0b926e01e5900258a566297eb09da26 | |
| parent | 23008: failure to output error message could alter exit status (diff) | |
| download | zsh-ef3df70c4d4d510ffa6caf193c4e3ef2f925b8f1.tar zsh-ef3df70c4d4d510ffa6caf193c4e3ef2f925b8f1.tar.gz zsh-ef3df70c4d4d510ffa6caf193c4e3ef2f925b8f1.tar.bz2 zsh-ef3df70c4d4d510ffa6caf193c4e3ef2f925b8f1.tar.lz zsh-ef3df70c4d4d510ffa6caf193c4e3ef2f925b8f1.tar.xz zsh-ef3df70c4d4d510ffa6caf193c4e3ef2f925b8f1.tar.zst zsh-ef3df70c4d4d510ffa6caf193c4e3ef2f925b8f1.zip | |
23018: parse out section headings from darcs --help.
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rw-r--r-- | Completion/Unix/Command/_darcs | 3 |
2 files changed, 6 insertions, 2 deletions
@@ -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 diff --git a/Completion/Unix/Command/_darcs b/Completion/Unix/Command/_darcs index 6d590585d..aa4d36770 100644 --- a/Completion/Unix/Command/_darcs +++ b/Completion/Unix/Command/_darcs @@ -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))') |
