2015-02-15 04:05:27 +01:00
|
|
|
_nghttp()
|
|
|
|
{
|
|
|
|
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-04-10 10:00:11 +02:00
|
|
|
COMPREPLY=( $( compgen -W '--no-push --verbose --no-dep --get-assets --har --header-table-size --multiply --padding --hexdump --max-concurrent-streams --continuation --connection-window-bits --peer-max-concurrent-streams --timeout --data --no-content-length --version --color --cert --upgrade --remote-name --trailer --weight --help --key --null-out --window-bits --expect-continue --stat --header ' -- "$cur" ) )
|
2015-02-15 04:05:27 +01:00
|
|
|
;;
|
|
|
|
*)
|
|
|
|
_filedir
|
|
|
|
return 0
|
|
|
|
esac
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
complete -F _nghttp nghttp
|