Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Please add pinfo completion



-----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