shell completion for optparse

Francisco Borges <[email protected]> Mon, 30 May 2005 01:34:31 +0200
Newsgroups gmane.comp.python.optik.user
Organization Alfa Informatica - Rijksuniversiteit Groningen
Message-ID <[email protected]>
Hello all,

I've made a module that generates zsh, bash and tcsh completion
functions out of optparse objects.

It makes code for zsh, bash and tcsh; but bash and tcsh are less
complete than zsh (though not even with zsh I'm handing all sorts of
options, but I'm getting there).

An earlier version I announced here required you to modify the python
code, this is not necessary anymore and you can get the completion code
without changing anything in your programs.

You can get it at:
http://loki.let.rug.nl/~borges/optcomp/optcomp.tar.gz

Comments are very welcome ;-)

Cheers,
-- 
Francisco.
           __o
          `\<,
   _____(*)/(*)_____



-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005