Automatic Shell Completion Support for Scripts Using Optparse
[needed for daps-docmanager on SLE 11 / 11.1 / 11.2] This module provide automatic bash completion support for programs that use the optparse module. The premise is that the optparse options parser specifies enough information (and more) for us to be able to generate completion strings esily. Another advantage of this over traditional completion schemes where the completion strings are hard-coded in a separate bash source file, is that the same code that parses the options is used to generate the completions, so the completions is always up-to-date with the program itself. In addition, we allow you specify a list of regular expressions or code that define what kinds of files should be proposed as completions to this file if needed. If you want to implement more complex behaviour, you can instead specify a function, which will be called with the current directory as an argument. You need to activate bash completion using the shell script function that comes with optcomplete (see http://furius.ca/optcomplete for more details).
Source Files (show unmerged sources)
|optcomplete-1.2-devel-fix-shebang.patch||00000012791.25 KB||1419777412over 1 year ago|
|optcomplete-1.2-devel.tar.bz2||000003596435.1 KB||1269430663about 6 years ago|
|python-optcomplete.changes||0000000748748 Bytes||1419779294over 1 year ago|
|python-optcomplete.spec||00000031713.1 KB||1419777412over 1 year ago|
Frank Sundermeyer (fsundermeyer) committed over 4 years ago (revision 1)