Home  »  Windows  »  Components & Libraries
optcomplete for linux 1-2
optcomplete for linux 1-2
Authorize : Freeware Free

Requirements : No special requirements

Publisher : Martin Blais

OfficeWebsite : http://furius.ca

OS Support : Linux

Servers
  • USA
Content
Automatic bash completion support for Python scripts using Pythons optparse.
Edit By BS Editor: his module aims at placing the shell completion routine and the option parsing code in a single location: in the program itself.

The Logic is that since a program already knows about its options, and in Python we have a standard module to specify them programmatically since Python-2.3 (optparse), the program itself is in the best position to suggest completions for an incomplete command-line to a shell that invokes it.

Traditionally, this has been done by writing shell-specific descriptions separate from the programs themselves, such as the BASh Programmable Completion project. This approach requires maintaining the shell completion functions up-to-date with the programs.

During development of this proof-of-concept, we were interested in finding if the programs could not describe their completion routines themselves, using The Well-specified completion protocol in bash. Similar completion routines could be easily written for other shells and we could extend this module to them.

This code comes with support for automatic completions for Bash and Zsh. you can free download optcomplete for linux 1.2 now.

Hot Download

New Download