# bash completion for ffind
# Install: /usr/share/bash-completion/completions/ffind

_ffind() {
    local cur
    cur="${COMP_WORDS[COMP_CWORD]}"
    if [[ "$cur" == -* ]]; then
        COMPREPLY=( $(compgen -W '--md --version -h --help' -- "$cur") )
        return 0
    fi
    COMPREPLY=( $(compgen -d -- "$cur") )
    return 0
}

complete -o default -F _ffind ffind
