2015-02-15 04:05:27 +01:00
|
|
|
_h2load()
|
|
|
|
{
|
|
|
|
local cur prev split=false
|
|
|
|
COMPREPLY=()
|
|
|
|
COMP_WORDBREAKS=${COMP_WORDBREAKS//=}
|
|
|
|
|
|
|
|
cmd=${COMP_WORDS[0]}
|
|
|
|
_get_comp_words_by_ref cur prev
|
|
|
|
case $cur in
|
|
|
|
-*)
|
2015-04-08 10:38:55 +02:00
|
|
|
COMPREPLY=( $( compgen -W '--threads --connection-window-bits --input-file --help --requests --data --verbose --version --window-bits --clients --no-tls-proto --header --max-concurrent-streams ' -- "$cur" ) )
|
2015-02-15 04:05:27 +01:00
|
|
|
;;
|
|
|
|
*)
|
|
|
|
_filedir
|
|
|
|
return 0
|
|
|
|
esac
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
complete -F _h2load h2load
|