From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17196 invoked from network); 22 Sep 2008 15:07:38 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.5 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 22 Sep 2008 15:07:38 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 2555 invoked from network); 22 Sep 2008 15:07:30 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 22 Sep 2008 15:07:30 -0000 Received: (qmail 23811 invoked by alias); 22 Sep 2008 15:07:25 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 25712 Received: (qmail 23795 invoked from network); 22 Sep 2008 15:07:24 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 22 Sep 2008 15:07:24 -0000 Received: from n30.bullet.mail.ukl.yahoo.com (n30.bullet.mail.ukl.yahoo.com [87.248.110.147]) by bifrost.dotsrc.org (Postfix) with SMTP id A76EC80309AD for ; Mon, 22 Sep 2008 17:07:07 +0200 (CEST) Received: from [217.146.182.178] by n30.bullet.mail.ukl.yahoo.com with NNFMP; 22 Sep 2008 15:07:01 -0000 Received: from [87.248.111.146] by t4.bullet.ukl.yahoo.com with NNFMP; 22 Sep 2008 15:07:01 -0000 Received: from [127.0.0.1] by omp203.mail.ukl.yahoo.com with NNFMP; 22 Sep 2008 15:07:01 -0000 X-Yahoo-Newman-Id: 316110.84370.bm@omp203.mail.ukl.yahoo.com Received: (qmail 18702 invoked from network); 22 Sep 2008 15:07:01 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.co.uk; h=Received:X-YMail-OSG:X-Yahoo-Newman-Property:Received:cc:In-reply-to:From:References:To:Subject:Date:Message-ID; b=u/WF7WyzXMiYOBrNp6YsZVs0Y+sOURAbUvXgWP6NqWlL7b+AgXkj2Q3g6CjtLTrjcGEKrnvkqYBQUNRncLCWI6dmoTQFebJXkxiFN28wqhb/TrO6SBgJk5HOb2a/9kLr6lKp5Ot0diGSp10aisDS3hOVrYoOiOp6NCKV8p/jCYQ= ; Received: from unknown (HELO thecus) (okiddle@89.48.1.124 with plain) by smtp140.mail.ukl.yahoo.com with SMTP; 22 Sep 2008 15:07:00 -0000 X-YMail-OSG: 682CAzoVM1lv8phb1xW23n2AM0ZD9jRojfPUSsX1O46_ogOv816vZjiYGeMlqSR.CE.C0HL3PpLnQAw34POeasOZx3IGawoJMCCEIO4UvjHZw2Z0r9aesPQWk.Vmr6Ysiw-- X-Yahoo-Newman-Property: ymail-3 Received: from opk (helo=thecus) by thecus with local-esmtp (Exim 4.63) (envelope-from ) id 1KhmZ7-0000ED-Fk; Mon, 22 Sep 2008 16:39:05 +0200 cc: zsh-workers@sunsite.dk In-reply-to: <48D40EEB.3040404@foofus.net> From: Oliver Kiddle References: <48D40EEB.3040404@foofus.net> To: Bismark Subject: Re: completion function help Date: Mon, 22 Sep 2008 16:39:05 +0200 Message-ID: <880.1222094345@thecus> X-Virus-Scanned: ClamAV 0.92.1/8308/Mon Sep 22 15:43:13 2008 on bifrost X-Virus-Status: Clean On 19 Sep, Bismark wrote: > What I'm looking for is for the parameters for an option to a command to > have a description. I've gotten the completion to work for the command > but when I complete the option I only get the values. > I would like it to display something like the following > > $ medusa -e > Additional password checks > n -- No Password > s -- Username = Password > ns -- No Password & Username = Password I'm guessing that you've got this far by using _arguments and passing it something like the following: '-e[additional password checks]:check:(n s ns)' \ To add descriptions, you would use something like the following: '-e[additional password checks]:check:((n\:No\ password s\:Username\ =\ Password ns\:No\ Password\ \&\ Username\ =\ Password))' I'm not familiar with the medusa software so can't say for sure if this really is the right answer. You might actually want to use _values for the list of checks. Oliver