From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6691 invoked from network); 9 Jul 2005 18:22:39 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 9 Jul 2005 18:22:39 -0000 Received: (qmail 31764 invoked from network); 9 Jul 2005 18:22:32 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 9 Jul 2005 18:22:32 -0000 Received: (qmail 20471 invoked by alias); 9 Jul 2005 18:22:26 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 9078 Received: (qmail 20462 invoked from network); 9 Jul 2005 18:22:25 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 9 Jul 2005 18:22:25 -0000 Received: (qmail 30849 invoked from network); 9 Jul 2005 18:22:25 -0000 Received: from vms044pub.verizon.net (206.46.252.44) by a.mx.sunsite.dk with SMTP; 9 Jul 2005 18:22:21 -0000 Received: from candle.brasslantern.com ([71.116.88.149]) by vms044.mailsrvcs.net (Sun Java System Messaging Server 6.2 HotFix 0.04 (built Dec 24 2004)) with ESMTPA id <0IJD0065GEW3G4NE@vms044.mailsrvcs.net> for zsh-users@sunsite.dk; Sat, 09 Jul 2005 12:21:40 -0500 (CDT) Received: from candle.brasslantern.com (IDENT:schaefer@localhost [127.0.0.1]) by candle.brasslantern.com (8.12.11/8.12.11) with ESMTP id j69HLdOQ017756 for ; Sat, 09 Jul 2005 10:21:39 -0700 Received: (from schaefer@localhost) by candle.brasslantern.com (8.12.11/8.12.11/Submit) id j69HLdMk017755 for zsh-users@sunsite.dk; Sat, 09 Jul 2005 10:21:39 -0700 Date: Sat, 09 Jul 2005 17:21:38 +0000 From: Bart Schaefer Subject: Re: Help with completion of option arguments In-reply-to: To: zsh-users@sunsite.dk Message-id: <1050709172138.ZM17754@candle.brasslantern.com> MIME-version: 1.0 X-Mailer: Z-Mail (5.0.0 30July97) Content-type: text/plain; charset=us-ascii References: <1050709070248.ZM17162@candle.brasslantern.com> Comments: In reply to Travis Spencer "Re: Help with completion of option arguments" (Jul 9, 1:42am) X-Spam-Checker-Version: SpamAssassin 3.0.2 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, score=-2.6 required=6.0 tests=BAYES_00 autolearn=ham version=3.0.2 X-Spam-Hits: -2.6 On Jul 9, 1:42am, Travis Spencer wrote: } Subject: Re: Help with completion of option arguments } } > ... is, insert an empty string element into the double-parens like this: } > } > _arguments : \ } > "-A-[this is a test]:test:(('' a\:'test sub-message'))" \ } > "-B-[notify (e-mail) admins]:notify:(('' } > b\:'suppress interactive query (for use in crontab)'))" } } Wow. Tricky. I would never have figured that out on my own. You might have. '-A' by itself is '-A' with an empty argument, right? Try it this way to see better: _arguments : \ "-A-[this is a test]:test:(('\:by itself, -A is a simple test' a\:'with this argument, -A tests a sub-message'))"