1_h2load() 2{ 3 local cur prev split=false 4 COMPREPLY=() 5 COMP_WORDBREAKS=${COMP_WORDBREAKS//=} 6 7 cmd=${COMP_WORDS[0]} 8 _get_comp_words_by_ref cur prev 9 case $cur in 10 -*) 11 COMPREPLY=( $( compgen -W '--connection-window-bits --clients --verbose --ciphers --rate --no-tls-proto --connect-to --header-table-size --requests --log-file --base-uri --h1 --threads --npn-list --rate-period --data --version --connection-inactivity-timeout --timing-script-file --encoder-header-table-size --max-concurrent-streams --connection-active-timeout --input-file --help --window-bits --warm-up-time --duration --header ' -- "$cur" ) ) 12 ;; 13 *) 14 _filedir 15 return 0 16 esac 17 return 0 18} 19complete -F _h2load h2load 20