1_nghttp() 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 '--verbose --null-out --remote-name --timeout --window-bits --connection-window-bits --get-assets --stat --header --trailer --cert --key --data --multiply --upgrade --weight --peer-max-concurrent-streams --header-table-size --encoder-header-table-size --padding --har --color --continuation --no-content-length --no-dep --hexdump --no-push --max-concurrent-streams --expect-continue --no-verify-peer --ktls --no-rfc7540-pri --version --help ' -- "$cur" ) ) 12 ;; 13 *) 14 _filedir 15 return 0 16 esac 17 return 0 18} 19complete -F _nghttp nghttp 20