20 lines
831 B
Plaintext
20 lines
831 B
Plaintext
_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
|
|
-*)
|
|
COMPREPLY=( $( compgen -W '--connection-window-bits --clients --verbose --ciphers --rate --no-tls-proto --connect-to --header-table-size --requests --log-file --base-uri --no-udp-gso --h1 --threads --npn-list --rate-period --rps --data --tls13-ciphers --version --connection-inactivity-timeout --timing-script-file --encoder-header-table-size --max-concurrent-streams --connection-active-timeout --input-file --help --groups --window-bits --qlog-file-base --warm-up-time --duration --header ' -- "$cur" ) )
|
|
;;
|
|
*)
|
|
_filedir
|
|
return 0
|
|
esac
|
|
return 0
|
|
}
|
|
complete -F _h2load h2load
|