# bash completion for tss2_getinfo -*- shell-script -*- _tss2_getinfo() { local cur prev words cword split _init_completion -s || return case $prev in -!(-*)h | --help) COMPREPLY=( $(compgen -W "man no-man" -- "$cur") ) return;; -!(-*)o | --info) _filedir if [ x"$cur" = x ]; then COMPREPLY+=( '-' ); fi return;; esac $split && return COMPREPLY=( $(compgen -W "-h --help -v --version --force -f --info= -o" -- "$cur") ) [[ $COMPREPLY == *= ]] && compopt -o nospace } && complete -F _tss2_getinfo tss2_getinfo # ex: filetype=sh