From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4306 invoked from network); 11 Oct 2006 02:48:58 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.6 (2006-10-03) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00, FORGED_RCVD_HELO autolearn=ham version=3.1.6 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 11 Oct 2006 02:48:58 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 74050 invoked from network); 11 Oct 2006 02:48:52 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 11 Oct 2006 02:48:52 -0000 Received: (qmail 6744 invoked by alias); 11 Oct 2006 02:48:49 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 22862 Received: (qmail 6732 invoked from network); 11 Oct 2006 02:48:48 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 11 Oct 2006 02:48:48 -0000 Received: (qmail 73693 invoked from network); 11 Oct 2006 02:48:48 -0000 Received: from flock1.newmail.ru (80.68.241.157) by a.mx.sunsite.dk with SMTP; 11 Oct 2006 02:48:48 -0000 Received: (qmail 29455 invoked from network); 11 Oct 2006 02:48:46 -0000 Received: from unknown (HELO cooker.local) (arvidjaar@newmail.ru@83.237.228.122) by smtpd.newmail.ru with SMTP; 11 Oct 2006 02:48:46 -0000 From: Andrey Borzenkov To: zsh-workers@sunsite.dk Subject: Re: Please add pinfo completion Date: Wed, 11 Oct 2006 06:48:37 +0400 User-Agent: KMail/1.9.4 References: <20061007013551.GE8188@prunille.vinc17.org> <20061010142200.GC17674@prunille.vinc17.org> <20061010185959.c84c0b49.pws@csr.com> In-Reply-To: <20061010185959.c84c0b49.pws@csr.com> Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200610110648.45199.arvidjaar@newmail.ru> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tuesday 10 October 2006 21:59, Peter Stephenson wrote: > Vincent Lefevre wrote: > > > compdef _gnu_generic pinfo > > > > One problem is that it doesn't give help text. So, is there a way > > to generate a completion file (to be completed), assuming that the > > command has the --help feature? > > OK, here is _arguments updated to provide option descriptions from --help > text automatically. > I do not think it should be done unconditionally. I guess it has been discussed back when we started all this completion candy; and common opinion was that running arbitrary program with --help may have unwanted side effects. Also, making it explicit allows passing different sorts of --help; specifically I am thinking about KDE/Qt --help-qt, --help-kde, --help-all, etc. And finally it opens up a can of worms that is called l10n. Now-a-days you almost sure gets localized help output; so be prepared for questions "why this one appears in Russian and this one not" :) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) iD8DBQFFLFuNR6LMutpd94wRApjOAJ99LPWo7Yd1AQrNIdTFDeDFJerLDQCfSg8t LnpZd2zxNnDyG2NRZ3EcVIE= =QdNs -----END PGP SIGNATURE-----