1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
|
# ex: ts=4 sw=4 et filetype=sh
_phpdoc()
{
local cur opts
COMPREPLY=()
cur="${COMP_WORDS[COMP_CWORD]}"
opts="
--help
--version
--quiet
--srcdir=
--basedir=
--rootdir=
--enable-force-dom-save
--enable-chm
--enable-howto
--with-lang=
--disable-segfault-error
--disable-segfault-speed
--disable-version-files
--disable-libxml-check
--with-php=
--with-partial=
--generate=
--output=
--disable-broken-file-listing
--redirect-stderr-to-stdout"
if [[ ${cur} == -* ]] ; then
COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
return 0
fi
}
complete -F _phpdoc phpdoc
|