2015-02-15 04:05:27 +01:00
|
|
|
_nghttpd()
|
|
|
|
{
|
|
|
|
local cur prev split=false
|
|
|
|
COMPREPLY=()
|
|
|
|
COMP_WORDBREAKS=${COMP_WORDBREAKS//=}
|
|
|
|
|
|
|
|
cmd=${COMP_WORDS[0]}
|
|
|
|
_get_comp_words_by_ref cur prev
|
|
|
|
case $cur in
|
|
|
|
-*)
|
2016-02-07 13:24:29 +01:00
|
|
|
COMPREPLY=( $( compgen -W '--htdocs --verbose --daemon --echo-upload --error-gzip --push --header-table-size --padding --hexdump --max-concurrent-streams --no-tls --connection-window-bits --mime-types-file --no-content-length --workers --version --color --early-response --dh-param-file --trailer --address --window-bits --verify-client --help ' -- "$cur" ) )
|
2015-02-15 04:05:27 +01:00
|
|
|
;;
|
|
|
|
*)
|
|
|
|
_filedir
|
|
|
|
return 0
|
|
|
|
esac
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
complete -F _nghttpd nghttpd
|