# this was auto-generated by OpenSC/doc/tools/Makefile.am
_westcos_tool()
{
    COMPREPLY=()
    local cur prev split=false
    _get_comp_words_by_ref cur prev

    _split_longopt && split=true

    opts="		--certificate --change-pin -f --finalize -g --generate-key -h --help -i --install-pin -j -k --key-length -l -n -o --overwrite-key --pin-value --puk-value -r --reader --read-file -t -u --unblock-pin -v -w --wait --write-file -x -y "

    if [ ${COMP_CWORD} -eq 1 ]; then
        COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
        return 0
    fi

    case "${prev}" in
        		--certificate|-j|-k|--key-length|-l|--pin-value|--puk-value|-r|--reader|--read-file|-t|--write-file|-x|-y)
            return 0
            ;;
        *)
            COMPREPLY=($(compgen -W "${opts}" -- ${cur}))
            return 0
            ;;
    esac

    $split && return 0

    if [[ "$cur" == -* ]]; then
        _longopt $1
        return
    fi

    _filedir
}
complete -F _westcos_tool westcos-tool


# Local variables:
# mode: shell-script
# sh-basic-offset: 4
# sh-indent-comment: t
# indent-tabs-mode: nil
# End:
# ex: ts=4 sw=4 et filetype=sh
