From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18721 invoked from network); 26 Jul 2000 09:59:00 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 26 Jul 2000 09:59:00 -0000 Received: (qmail 22799 invoked by alias); 26 Jul 2000 09:58:49 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 12382 Received: (qmail 22791 invoked from network); 26 Jul 2000 09:58:47 -0000 From: "Bart Schaefer" Message-Id: <1000726095842.ZM25435@candle.brasslantern.com> Date: Wed, 26 Jul 2000 09:58:42 +0000 In-Reply-To: <200007260838.KAA13160@beta.informatik.hu-berlin.de> Comments: In reply to Sven Wischnowsky "PATCH: Re: _arguments parsing of --help output" (Jul 26, 10:38am) References: <200007260838.KAA13160@beta.informatik.hu-berlin.de> X-Mailer: Z-Mail (5.0.0 30July97) To: zsh-workers@sunsite.auc.dk Subject: Re: PATCH: Re: _arguments parsing of --help output MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Jul 26, 10:38am, Sven Wischnowsky wrote: } Subject: PATCH: Re: _arguments parsing of --help output } } zstyle ':completion:*:option(-*|s)' auto-description 'specify %d' } } % tst -- } --e -- specify ea } --b --e --p } } I.e. --e is listed twice, the first one is the `--e:ea:(1 2)' and the } second one is the auto-detected one. } } Should we make _arguments use only the first, last or most `specifc' } one (`most specific' could mean that it describes more arguments than } the other specs for that same option)? Hm. If somebody actually puts a description of the same option both before and after the `--' in the _arguments positional-parameter list, I think they should get both descriptions included in the listing. In other cases I suppose I'd prefer that it take only the user-supplied description (not the parsed --help one), but I don't think it's very important to change the current behavior. -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.brasslantern.com Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net