zsh-workers
 help / color / mirror / code / Atom feed
From: Andrey Borzenkov <arvidjaar@newmail.ru>
To: zsh-workers@sunsite.dk
Subject: Re: Please add pinfo completion
Date: Wed, 11 Oct 2006 06:48:37 +0400	[thread overview]
Message-ID: <200610110648.45199.arvidjaar@newmail.ru> (raw)
In-Reply-To: <20061010185959.c84c0b49.pws@csr.com>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tuesday 10 October 2006 21:59, Peter Stephenson wrote:
> Vincent Lefevre <vincent@vinc17.org> 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-----


  parent reply	other threads:[~2006-10-11  2:48 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-07  1:35 Vincent Lefevre
2006-10-07 15:27 ` Nikolai Weibull
2006-10-08 21:13 ` Mikael Magnusson
2006-10-10 14:22   ` Vincent Lefevre
2006-10-10 15:29     ` Bart Schaefer
2006-10-11  1:03       ` Vincent Lefevre
2006-10-10 17:59     ` Peter Stephenson
2006-10-10 21:23       ` Peter Stephenson
2006-10-11  2:48       ` Andrey Borzenkov [this message]
     [not found]         ` <200610110933.k9B9XJTB021853@news01.csr.com>
2006-10-11 15:43           ` Andrey Borzenkov
2006-10-11 16:30             ` Peter Stephenson
2006-10-11  2:52       ` Andrey Borzenkov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200610110648.45199.arvidjaar@newmail.ru \
    --to=arvidjaar@newmail.ru \
    --cc=zsh-workers@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).