From ef3df70c4d4d510ffa6caf193c4e3ef2f925b8f1 Mon Sep 17 00:00:00 2001 From: Clint Adams Date: Mon, 27 Nov 2006 04:08:41 +0000 Subject: 23018: parse out section headings from darcs --help. --- Completion/Unix/Command/_darcs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Completion/Unix/Command/_darcs') 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))') -- cgit 1.4.1