Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Please add pinfo completion
- X-seq: zsh-workers 22862
- From: Andrey Borzenkov <arvidjaar@xxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Re: Please add pinfo completion
- Date: Wed, 11 Oct 2006 06:48:37 +0400
- In-reply-to: <20061010185959.c84c0b49.pws@xxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <20061007013551.GE8188@xxxxxxxxxxxxxxxxxxx> <20061010142200.GC17674@xxxxxxxxxxxxxxxxxxx> <20061010185959.c84c0b49.pws@xxxxxxx>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Tuesday 10 October 2006 21:59, Peter Stephenson wrote:
> Vincent Lefevre <vincent@xxxxxxxxxx> 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-----
Messages sorted by:
Reverse Date,
Date,
Thread,
Author