_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 -*) COMPREPLY=( $( compgen -W '--no-push --verbose --no-dep --get-assets --har --header-table-size --multiply --encoder-header-table-size --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" ) ) ;; *) _filedir return 0 esac return 0 } complete -F _nghttp nghttp