_anchor() {
    local i cur prev opts cmd
    COMPREPLY=()
    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then
        cur="$2"
    else
        cur="${COMP_WORDS[COMP_CWORD]}"
    fi
    prev="$3"
    cmd=""
    opts=""

    for i in "${COMP_WORDS[@]:0:COMP_CWORD}"
    do
        case "${cmd},${i}" in
            ",$1")
                cmd="anchor"
                ;;
            anchor,account)
                cmd="anchor__subcmd__account"
                ;;
            anchor,address)
                cmd="anchor__subcmd__address"
                ;;
            anchor,airdrop)
                cmd="anchor__subcmd__airdrop"
                ;;
            anchor,balance)
                cmd="anchor__subcmd__balance"
                ;;
            anchor,build)
                cmd="anchor__subcmd__build"
                ;;
            anchor,clean)
                cmd="anchor__subcmd__clean"
                ;;
            anchor,cluster)
                cmd="anchor__subcmd__cluster"
                ;;
            anchor,codama)
                cmd="anchor__subcmd__codama"
                ;;
            anchor,completions)
                cmd="anchor__subcmd__completions"
                ;;
            anchor,config)
                cmd="anchor__subcmd__config"
                ;;
            anchor,coverage)
                cmd="anchor__subcmd__coverage"
                ;;
            anchor,debugger)
                cmd="anchor__subcmd__debugger"
                ;;
            anchor,deploy)
                cmd="anchor__subcmd__deploy"
                ;;
            anchor,epoch)
                cmd="anchor__subcmd__epoch"
                ;;
            anchor,epoch-info)
                cmd="anchor__subcmd__epoch__subcmd__info"
                ;;
            anchor,expand)
                cmd="anchor__subcmd__expand"
                ;;
            anchor,fuzz)
                cmd="anchor__subcmd__fuzz"
                ;;
            anchor,help)
                cmd="anchor__subcmd__help"
                ;;
            anchor,idl)
                cmd="anchor__subcmd__idl"
                ;;
            anchor,init)
                cmd="anchor__subcmd__init"
                ;;
            anchor,keygen)
                cmd="anchor__subcmd__keygen"
                ;;
            anchor,keys)
                cmd="anchor__subcmd__keys"
                ;;
            anchor,legacy-idl)
                cmd="anchor__subcmd__legacy__subcmd__idl"
                ;;
            anchor,localnet)
                cmd="anchor__subcmd__localnet"
                ;;
            anchor,logs)
                cmd="anchor__subcmd__logs"
                ;;
            anchor,migrate)
                cmd="anchor__subcmd__migrate"
                ;;
            anchor,new)
                cmd="anchor__subcmd__new"
                ;;
            anchor,program)
                cmd="anchor__subcmd__program"
                ;;
            anchor,run)
                cmd="anchor__subcmd__run"
                ;;
            anchor,shell)
                cmd="anchor__subcmd__shell"
                ;;
            anchor,show-account)
                cmd="anchor__subcmd__show__subcmd__account"
                ;;
            anchor,test)
                cmd="anchor__subcmd__test"
                ;;
            anchor,upgrade)
                cmd="anchor__subcmd__upgrade"
                ;;
            anchor,verify)
                cmd="anchor__subcmd__verify"
                ;;
            anchor__subcmd__cluster,help)
                cmd="anchor__subcmd__cluster__subcmd__help"
                ;;
            anchor__subcmd__cluster,list)
                cmd="anchor__subcmd__cluster__subcmd__list"
                ;;
            anchor__subcmd__cluster__subcmd__help,help)
                cmd="anchor__subcmd__cluster__subcmd__help__subcmd__help"
                ;;
            anchor__subcmd__cluster__subcmd__help,list)
                cmd="anchor__subcmd__cluster__subcmd__help__subcmd__list"
                ;;
            anchor__subcmd__codama,convert)
                cmd="anchor__subcmd__codama__subcmd__convert"
                ;;
            anchor__subcmd__codama,generate)
                cmd="anchor__subcmd__codama__subcmd__generate"
                ;;
            anchor__subcmd__codama,help)
                cmd="anchor__subcmd__codama__subcmd__help"
                ;;
            anchor__subcmd__codama__subcmd__help,convert)
                cmd="anchor__subcmd__codama__subcmd__help__subcmd__convert"
                ;;
            anchor__subcmd__codama__subcmd__help,generate)
                cmd="anchor__subcmd__codama__subcmd__help__subcmd__generate"
                ;;
            anchor__subcmd__codama__subcmd__help,help)
                cmd="anchor__subcmd__codama__subcmd__help__subcmd__help"
                ;;
            anchor__subcmd__config,get)
                cmd="anchor__subcmd__config__subcmd__get"
                ;;
            anchor__subcmd__config,help)
                cmd="anchor__subcmd__config__subcmd__help"
                ;;
            anchor__subcmd__config,set)
                cmd="anchor__subcmd__config__subcmd__set"
                ;;
            anchor__subcmd__config__subcmd__help,get)
                cmd="anchor__subcmd__config__subcmd__help__subcmd__get"
                ;;
            anchor__subcmd__config__subcmd__help,help)
                cmd="anchor__subcmd__config__subcmd__help__subcmd__help"
                ;;
            anchor__subcmd__config__subcmd__help,set)
                cmd="anchor__subcmd__config__subcmd__help__subcmd__set"
                ;;
            anchor__subcmd__fuzz,cmin)
                cmd="anchor__subcmd__fuzz__subcmd__cmin"
                ;;
            anchor__subcmd__fuzz,help)
                cmd="anchor__subcmd__fuzz__subcmd__help"
                ;;
            anchor__subcmd__fuzz,init)
                cmd="anchor__subcmd__fuzz__subcmd__init"
                ;;
            anchor__subcmd__fuzz,list)
                cmd="anchor__subcmd__fuzz__subcmd__list"
                ;;
            anchor__subcmd__fuzz,run)
                cmd="anchor__subcmd__fuzz__subcmd__run"
                ;;
            anchor__subcmd__fuzz,show)
                cmd="anchor__subcmd__fuzz__subcmd__show"
                ;;
            anchor__subcmd__fuzz,tmin)
                cmd="anchor__subcmd__fuzz__subcmd__tmin"
                ;;
            anchor__subcmd__fuzz__subcmd__help,cmin)
                cmd="anchor__subcmd__fuzz__subcmd__help__subcmd__cmin"
                ;;
            anchor__subcmd__fuzz__subcmd__help,help)
                cmd="anchor__subcmd__fuzz__subcmd__help__subcmd__help"
                ;;
            anchor__subcmd__fuzz__subcmd__help,init)
                cmd="anchor__subcmd__fuzz__subcmd__help__subcmd__init"
                ;;
            anchor__subcmd__fuzz__subcmd__help,list)
                cmd="anchor__subcmd__fuzz__subcmd__help__subcmd__list"
                ;;
            anchor__subcmd__fuzz__subcmd__help,run)
                cmd="anchor__subcmd__fuzz__subcmd__help__subcmd__run"
                ;;
            anchor__subcmd__fuzz__subcmd__help,show)
                cmd="anchor__subcmd__fuzz__subcmd__help__subcmd__show"
                ;;
            anchor__subcmd__fuzz__subcmd__help,tmin)
                cmd="anchor__subcmd__fuzz__subcmd__help__subcmd__tmin"
                ;;
            anchor__subcmd__help,account)
                cmd="anchor__subcmd__help__subcmd__account"
                ;;
            anchor__subcmd__help,address)
                cmd="anchor__subcmd__help__subcmd__address"
                ;;
            anchor__subcmd__help,airdrop)
                cmd="anchor__subcmd__help__subcmd__airdrop"
                ;;
            anchor__subcmd__help,balance)
                cmd="anchor__subcmd__help__subcmd__balance"
                ;;
            anchor__subcmd__help,build)
                cmd="anchor__subcmd__help__subcmd__build"
                ;;
            anchor__subcmd__help,clean)
                cmd="anchor__subcmd__help__subcmd__clean"
                ;;
            anchor__subcmd__help,cluster)
                cmd="anchor__subcmd__help__subcmd__cluster"
                ;;
            anchor__subcmd__help,codama)
                cmd="anchor__subcmd__help__subcmd__codama"
                ;;
            anchor__subcmd__help,completions)
                cmd="anchor__subcmd__help__subcmd__completions"
                ;;
            anchor__subcmd__help,config)
                cmd="anchor__subcmd__help__subcmd__config"
                ;;
            anchor__subcmd__help,coverage)
                cmd="anchor__subcmd__help__subcmd__coverage"
                ;;
            anchor__subcmd__help,debugger)
                cmd="anchor__subcmd__help__subcmd__debugger"
                ;;
            anchor__subcmd__help,deploy)
                cmd="anchor__subcmd__help__subcmd__deploy"
                ;;
            anchor__subcmd__help,epoch)
                cmd="anchor__subcmd__help__subcmd__epoch"
                ;;
            anchor__subcmd__help,epoch-info)
                cmd="anchor__subcmd__help__subcmd__epoch__subcmd__info"
                ;;
            anchor__subcmd__help,expand)
                cmd="anchor__subcmd__help__subcmd__expand"
                ;;
            anchor__subcmd__help,fuzz)
                cmd="anchor__subcmd__help__subcmd__fuzz"
                ;;
            anchor__subcmd__help,help)
                cmd="anchor__subcmd__help__subcmd__help"
                ;;
            anchor__subcmd__help,idl)
                cmd="anchor__subcmd__help__subcmd__idl"
                ;;
            anchor__subcmd__help,init)
                cmd="anchor__subcmd__help__subcmd__init"
                ;;
            anchor__subcmd__help,keygen)
                cmd="anchor__subcmd__help__subcmd__keygen"
                ;;
            anchor__subcmd__help,keys)
                cmd="anchor__subcmd__help__subcmd__keys"
                ;;
            anchor__subcmd__help,legacy-idl)
                cmd="anchor__subcmd__help__subcmd__legacy__subcmd__idl"
                ;;
            anchor__subcmd__help,localnet)
                cmd="anchor__subcmd__help__subcmd__localnet"
                ;;
            anchor__subcmd__help,logs)
                cmd="anchor__subcmd__help__subcmd__logs"
                ;;
            anchor__subcmd__help,migrate)
                cmd="anchor__subcmd__help__subcmd__migrate"
                ;;
            anchor__subcmd__help,new)
                cmd="anchor__subcmd__help__subcmd__new"
                ;;
            anchor__subcmd__help,program)
                cmd="anchor__subcmd__help__subcmd__program"
                ;;
            anchor__subcmd__help,run)
                cmd="anchor__subcmd__help__subcmd__run"
                ;;
            anchor__subcmd__help,shell)
                cmd="anchor__subcmd__help__subcmd__shell"
                ;;
            anchor__subcmd__help,show-account)
                cmd="anchor__subcmd__help__subcmd__show__subcmd__account"
                ;;
            anchor__subcmd__help,test)
                cmd="anchor__subcmd__help__subcmd__test"
                ;;
            anchor__subcmd__help,upgrade)
                cmd="anchor__subcmd__help__subcmd__upgrade"
                ;;
            anchor__subcmd__help,verify)
                cmd="anchor__subcmd__help__subcmd__verify"
                ;;
            anchor__subcmd__help__subcmd__cluster,list)
                cmd="anchor__subcmd__help__subcmd__cluster__subcmd__list"
                ;;
            anchor__subcmd__help__subcmd__codama,convert)
                cmd="anchor__subcmd__help__subcmd__codama__subcmd__convert"
                ;;
            anchor__subcmd__help__subcmd__codama,generate)
                cmd="anchor__subcmd__help__subcmd__codama__subcmd__generate"
                ;;
            anchor__subcmd__help__subcmd__config,get)
                cmd="anchor__subcmd__help__subcmd__config__subcmd__get"
                ;;
            anchor__subcmd__help__subcmd__config,set)
                cmd="anchor__subcmd__help__subcmd__config__subcmd__set"
                ;;
            anchor__subcmd__help__subcmd__fuzz,cmin)
                cmd="anchor__subcmd__help__subcmd__fuzz__subcmd__cmin"
                ;;
            anchor__subcmd__help__subcmd__fuzz,init)
                cmd="anchor__subcmd__help__subcmd__fuzz__subcmd__init"
                ;;
            anchor__subcmd__help__subcmd__fuzz,list)
                cmd="anchor__subcmd__help__subcmd__fuzz__subcmd__list"
                ;;
            anchor__subcmd__help__subcmd__fuzz,run)
                cmd="anchor__subcmd__help__subcmd__fuzz__subcmd__run"
                ;;
            anchor__subcmd__help__subcmd__fuzz,show)
                cmd="anchor__subcmd__help__subcmd__fuzz__subcmd__show"
                ;;
            anchor__subcmd__help__subcmd__fuzz,tmin)
                cmd="anchor__subcmd__help__subcmd__fuzz__subcmd__tmin"
                ;;
            anchor__subcmd__help__subcmd__idl,build)
                cmd="anchor__subcmd__help__subcmd__idl__subcmd__build"
                ;;
            anchor__subcmd__help__subcmd__idl,close)
                cmd="anchor__subcmd__help__subcmd__idl__subcmd__close"
                ;;
            anchor__subcmd__help__subcmd__idl,convert)
                cmd="anchor__subcmd__help__subcmd__idl__subcmd__convert"
                ;;
            anchor__subcmd__help__subcmd__idl,create-buffer)
                cmd="anchor__subcmd__help__subcmd__idl__subcmd__create__subcmd__buffer"
                ;;
            anchor__subcmd__help__subcmd__idl,fetch)
                cmd="anchor__subcmd__help__subcmd__idl__subcmd__fetch"
                ;;
            anchor__subcmd__help__subcmd__idl,fetch-historical)
                cmd="anchor__subcmd__help__subcmd__idl__subcmd__fetch__subcmd__historical"
                ;;
            anchor__subcmd__help__subcmd__idl,init)
                cmd="anchor__subcmd__help__subcmd__idl__subcmd__init"
                ;;
            anchor__subcmd__help__subcmd__idl,set-buffer-authority)
                cmd="anchor__subcmd__help__subcmd__idl__subcmd__set__subcmd__buffer__subcmd__authority"
                ;;
            anchor__subcmd__help__subcmd__idl,type)
                cmd="anchor__subcmd__help__subcmd__idl__subcmd__type"
                ;;
            anchor__subcmd__help__subcmd__idl,upgrade)
                cmd="anchor__subcmd__help__subcmd__idl__subcmd__upgrade"
                ;;
            anchor__subcmd__help__subcmd__idl,write-buffer)
                cmd="anchor__subcmd__help__subcmd__idl__subcmd__write__subcmd__buffer"
                ;;
            anchor__subcmd__help__subcmd__keygen,new)
                cmd="anchor__subcmd__help__subcmd__keygen__subcmd__new"
                ;;
            anchor__subcmd__help__subcmd__keygen,pubkey)
                cmd="anchor__subcmd__help__subcmd__keygen__subcmd__pubkey"
                ;;
            anchor__subcmd__help__subcmd__keygen,recover)
                cmd="anchor__subcmd__help__subcmd__keygen__subcmd__recover"
                ;;
            anchor__subcmd__help__subcmd__keygen,verify)
                cmd="anchor__subcmd__help__subcmd__keygen__subcmd__verify"
                ;;
            anchor__subcmd__help__subcmd__keys,list)
                cmd="anchor__subcmd__help__subcmd__keys__subcmd__list"
                ;;
            anchor__subcmd__help__subcmd__keys,sync)
                cmd="anchor__subcmd__help__subcmd__keys__subcmd__sync"
                ;;
            anchor__subcmd__help__subcmd__legacy__subcmd__idl,authority)
                cmd="anchor__subcmd__help__subcmd__legacy__subcmd__idl__subcmd__authority"
                ;;
            anchor__subcmd__help__subcmd__legacy__subcmd__idl,close)
                cmd="anchor__subcmd__help__subcmd__legacy__subcmd__idl__subcmd__close"
                ;;
            anchor__subcmd__help__subcmd__legacy__subcmd__idl,erase-authority)
                cmd="anchor__subcmd__help__subcmd__legacy__subcmd__idl__subcmd__erase__subcmd__authority"
                ;;
            anchor__subcmd__help__subcmd__legacy__subcmd__idl,fetch)
                cmd="anchor__subcmd__help__subcmd__legacy__subcmd__idl__subcmd__fetch"
                ;;
            anchor__subcmd__help__subcmd__legacy__subcmd__idl,init)
                cmd="anchor__subcmd__help__subcmd__legacy__subcmd__idl__subcmd__init"
                ;;
            anchor__subcmd__help__subcmd__legacy__subcmd__idl,set-authority)
                cmd="anchor__subcmd__help__subcmd__legacy__subcmd__idl__subcmd__set__subcmd__authority"
                ;;
            anchor__subcmd__help__subcmd__legacy__subcmd__idl,set-buffer)
                cmd="anchor__subcmd__help__subcmd__legacy__subcmd__idl__subcmd__set__subcmd__buffer"
                ;;
            anchor__subcmd__help__subcmd__legacy__subcmd__idl,upgrade)
                cmd="anchor__subcmd__help__subcmd__legacy__subcmd__idl__subcmd__upgrade"
                ;;
            anchor__subcmd__help__subcmd__legacy__subcmd__idl,write-buffer)
                cmd="anchor__subcmd__help__subcmd__legacy__subcmd__idl__subcmd__write__subcmd__buffer"
                ;;
            anchor__subcmd__help__subcmd__program,close)
                cmd="anchor__subcmd__help__subcmd__program__subcmd__close"
                ;;
            anchor__subcmd__help__subcmd__program,deploy)
                cmd="anchor__subcmd__help__subcmd__program__subcmd__deploy"
                ;;
            anchor__subcmd__help__subcmd__program,dump)
                cmd="anchor__subcmd__help__subcmd__program__subcmd__dump"
                ;;
            anchor__subcmd__help__subcmd__program,extend)
                cmd="anchor__subcmd__help__subcmd__program__subcmd__extend"
                ;;
            anchor__subcmd__help__subcmd__program,set-buffer-authority)
                cmd="anchor__subcmd__help__subcmd__program__subcmd__set__subcmd__buffer__subcmd__authority"
                ;;
            anchor__subcmd__help__subcmd__program,set-upgrade-authority)
                cmd="anchor__subcmd__help__subcmd__program__subcmd__set__subcmd__upgrade__subcmd__authority"
                ;;
            anchor__subcmd__help__subcmd__program,show)
                cmd="anchor__subcmd__help__subcmd__program__subcmd__show"
                ;;
            anchor__subcmd__help__subcmd__program,upgrade)
                cmd="anchor__subcmd__help__subcmd__program__subcmd__upgrade"
                ;;
            anchor__subcmd__help__subcmd__program,write-buffer)
                cmd="anchor__subcmd__help__subcmd__program__subcmd__write__subcmd__buffer"
                ;;
            anchor__subcmd__idl,build)
                cmd="anchor__subcmd__idl__subcmd__build"
                ;;
            anchor__subcmd__idl,close)
                cmd="anchor__subcmd__idl__subcmd__close"
                ;;
            anchor__subcmd__idl,convert)
                cmd="anchor__subcmd__idl__subcmd__convert"
                ;;
            anchor__subcmd__idl,create-buffer)
                cmd="anchor__subcmd__idl__subcmd__create__subcmd__buffer"
                ;;
            anchor__subcmd__idl,fetch)
                cmd="anchor__subcmd__idl__subcmd__fetch"
                ;;
            anchor__subcmd__idl,fetch-historical)
                cmd="anchor__subcmd__idl__subcmd__fetch__subcmd__historical"
                ;;
            anchor__subcmd__idl,help)
                cmd="anchor__subcmd__idl__subcmd__help"
                ;;
            anchor__subcmd__idl,init)
                cmd="anchor__subcmd__idl__subcmd__init"
                ;;
            anchor__subcmd__idl,set-buffer-authority)
                cmd="anchor__subcmd__idl__subcmd__set__subcmd__buffer__subcmd__authority"
                ;;
            anchor__subcmd__idl,type)
                cmd="anchor__subcmd__idl__subcmd__type"
                ;;
            anchor__subcmd__idl,upgrade)
                cmd="anchor__subcmd__idl__subcmd__upgrade"
                ;;
            anchor__subcmd__idl,write-buffer)
                cmd="anchor__subcmd__idl__subcmd__write__subcmd__buffer"
                ;;
            anchor__subcmd__idl__subcmd__help,build)
                cmd="anchor__subcmd__idl__subcmd__help__subcmd__build"
                ;;
            anchor__subcmd__idl__subcmd__help,close)
                cmd="anchor__subcmd__idl__subcmd__help__subcmd__close"
                ;;
            anchor__subcmd__idl__subcmd__help,convert)
                cmd="anchor__subcmd__idl__subcmd__help__subcmd__convert"
                ;;
            anchor__subcmd__idl__subcmd__help,create-buffer)
                cmd="anchor__subcmd__idl__subcmd__help__subcmd__create__subcmd__buffer"
                ;;
            anchor__subcmd__idl__subcmd__help,fetch)
                cmd="anchor__subcmd__idl__subcmd__help__subcmd__fetch"
                ;;
            anchor__subcmd__idl__subcmd__help,fetch-historical)
                cmd="anchor__subcmd__idl__subcmd__help__subcmd__fetch__subcmd__historical"
                ;;
            anchor__subcmd__idl__subcmd__help,help)
                cmd="anchor__subcmd__idl__subcmd__help__subcmd__help"
                ;;
            anchor__subcmd__idl__subcmd__help,init)
                cmd="anchor__subcmd__idl__subcmd__help__subcmd__init"
                ;;
            anchor__subcmd__idl__subcmd__help,set-buffer-authority)
                cmd="anchor__subcmd__idl__subcmd__help__subcmd__set__subcmd__buffer__subcmd__authority"
                ;;
            anchor__subcmd__idl__subcmd__help,type)
                cmd="anchor__subcmd__idl__subcmd__help__subcmd__type"
                ;;
            anchor__subcmd__idl__subcmd__help,upgrade)
                cmd="anchor__subcmd__idl__subcmd__help__subcmd__upgrade"
                ;;
            anchor__subcmd__idl__subcmd__help,write-buffer)
                cmd="anchor__subcmd__idl__subcmd__help__subcmd__write__subcmd__buffer"
                ;;
            anchor__subcmd__keygen,help)
                cmd="anchor__subcmd__keygen__subcmd__help"
                ;;
            anchor__subcmd__keygen,new)
                cmd="anchor__subcmd__keygen__subcmd__new"
                ;;
            anchor__subcmd__keygen,pubkey)
                cmd="anchor__subcmd__keygen__subcmd__pubkey"
                ;;
            anchor__subcmd__keygen,recover)
                cmd="anchor__subcmd__keygen__subcmd__recover"
                ;;
            anchor__subcmd__keygen,verify)
                cmd="anchor__subcmd__keygen__subcmd__verify"
                ;;
            anchor__subcmd__keygen__subcmd__help,help)
                cmd="anchor__subcmd__keygen__subcmd__help__subcmd__help"
                ;;
            anchor__subcmd__keygen__subcmd__help,new)
                cmd="anchor__subcmd__keygen__subcmd__help__subcmd__new"
                ;;
            anchor__subcmd__keygen__subcmd__help,pubkey)
                cmd="anchor__subcmd__keygen__subcmd__help__subcmd__pubkey"
                ;;
            anchor__subcmd__keygen__subcmd__help,recover)
                cmd="anchor__subcmd__keygen__subcmd__help__subcmd__recover"
                ;;
            anchor__subcmd__keygen__subcmd__help,verify)
                cmd="anchor__subcmd__keygen__subcmd__help__subcmd__verify"
                ;;
            anchor__subcmd__keys,help)
                cmd="anchor__subcmd__keys__subcmd__help"
                ;;
            anchor__subcmd__keys,list)
                cmd="anchor__subcmd__keys__subcmd__list"
                ;;
            anchor__subcmd__keys,sync)
                cmd="anchor__subcmd__keys__subcmd__sync"
                ;;
            anchor__subcmd__keys__subcmd__help,help)
                cmd="anchor__subcmd__keys__subcmd__help__subcmd__help"
                ;;
            anchor__subcmd__keys__subcmd__help,list)
                cmd="anchor__subcmd__keys__subcmd__help__subcmd__list"
                ;;
            anchor__subcmd__keys__subcmd__help,sync)
                cmd="anchor__subcmd__keys__subcmd__help__subcmd__sync"
                ;;
            anchor__subcmd__legacy__subcmd__idl,authority)
                cmd="anchor__subcmd__legacy__subcmd__idl__subcmd__authority"
                ;;
            anchor__subcmd__legacy__subcmd__idl,close)
                cmd="anchor__subcmd__legacy__subcmd__idl__subcmd__close"
                ;;
            anchor__subcmd__legacy__subcmd__idl,erase-authority)
                cmd="anchor__subcmd__legacy__subcmd__idl__subcmd__erase__subcmd__authority"
                ;;
            anchor__subcmd__legacy__subcmd__idl,fetch)
                cmd="anchor__subcmd__legacy__subcmd__idl__subcmd__fetch"
                ;;
            anchor__subcmd__legacy__subcmd__idl,help)
                cmd="anchor__subcmd__legacy__subcmd__idl__subcmd__help"
                ;;
            anchor__subcmd__legacy__subcmd__idl,init)
                cmd="anchor__subcmd__legacy__subcmd__idl__subcmd__init"
                ;;
            anchor__subcmd__legacy__subcmd__idl,set-authority)
                cmd="anchor__subcmd__legacy__subcmd__idl__subcmd__set__subcmd__authority"
                ;;
            anchor__subcmd__legacy__subcmd__idl,set-buffer)
                cmd="anchor__subcmd__legacy__subcmd__idl__subcmd__set__subcmd__buffer"
                ;;
            anchor__subcmd__legacy__subcmd__idl,upgrade)
                cmd="anchor__subcmd__legacy__subcmd__idl__subcmd__upgrade"
                ;;
            anchor__subcmd__legacy__subcmd__idl,write-buffer)
                cmd="anchor__subcmd__legacy__subcmd__idl__subcmd__write__subcmd__buffer"
                ;;
            anchor__subcmd__legacy__subcmd__idl__subcmd__help,authority)
                cmd="anchor__subcmd__legacy__subcmd__idl__subcmd__help__subcmd__authority"
                ;;
            anchor__subcmd__legacy__subcmd__idl__subcmd__help,close)
                cmd="anchor__subcmd__legacy__subcmd__idl__subcmd__help__subcmd__close"
                ;;
            anchor__subcmd__legacy__subcmd__idl__subcmd__help,erase-authority)
                cmd="anchor__subcmd__legacy__subcmd__idl__subcmd__help__subcmd__erase__subcmd__authority"
                ;;
            anchor__subcmd__legacy__subcmd__idl__subcmd__help,fetch)
                cmd="anchor__subcmd__legacy__subcmd__idl__subcmd__help__subcmd__fetch"
                ;;
            anchor__subcmd__legacy__subcmd__idl__subcmd__help,help)
                cmd="anchor__subcmd__legacy__subcmd__idl__subcmd__help__subcmd__help"
                ;;
            anchor__subcmd__legacy__subcmd__idl__subcmd__help,init)
                cmd="anchor__subcmd__legacy__subcmd__idl__subcmd__help__subcmd__init"
                ;;
            anchor__subcmd__legacy__subcmd__idl__subcmd__help,set-authority)
                cmd="anchor__subcmd__legacy__subcmd__idl__subcmd__help__subcmd__set__subcmd__authority"
                ;;
            anchor__subcmd__legacy__subcmd__idl__subcmd__help,set-buffer)
                cmd="anchor__subcmd__legacy__subcmd__idl__subcmd__help__subcmd__set__subcmd__buffer"
                ;;
            anchor__subcmd__legacy__subcmd__idl__subcmd__help,upgrade)
                cmd="anchor__subcmd__legacy__subcmd__idl__subcmd__help__subcmd__upgrade"
                ;;
            anchor__subcmd__legacy__subcmd__idl__subcmd__help,write-buffer)
                cmd="anchor__subcmd__legacy__subcmd__idl__subcmd__help__subcmd__write__subcmd__buffer"
                ;;
            anchor__subcmd__program,close)
                cmd="anchor__subcmd__program__subcmd__close"
                ;;
            anchor__subcmd__program,deploy)
                cmd="anchor__subcmd__program__subcmd__deploy"
                ;;
            anchor__subcmd__program,dump)
                cmd="anchor__subcmd__program__subcmd__dump"
                ;;
            anchor__subcmd__program,extend)
                cmd="anchor__subcmd__program__subcmd__extend"
                ;;
            anchor__subcmd__program,help)
                cmd="anchor__subcmd__program__subcmd__help"
                ;;
            anchor__subcmd__program,set-buffer-authority)
                cmd="anchor__subcmd__program__subcmd__set__subcmd__buffer__subcmd__authority"
                ;;
            anchor__subcmd__program,set-upgrade-authority)
                cmd="anchor__subcmd__program__subcmd__set__subcmd__upgrade__subcmd__authority"
                ;;
            anchor__subcmd__program,show)
                cmd="anchor__subcmd__program__subcmd__show"
                ;;
            anchor__subcmd__program,upgrade)
                cmd="anchor__subcmd__program__subcmd__upgrade"
                ;;
            anchor__subcmd__program,write-buffer)
                cmd="anchor__subcmd__program__subcmd__write__subcmd__buffer"
                ;;
            anchor__subcmd__program__subcmd__help,close)
                cmd="anchor__subcmd__program__subcmd__help__subcmd__close"
                ;;
            anchor__subcmd__program__subcmd__help,deploy)
                cmd="anchor__subcmd__program__subcmd__help__subcmd__deploy"
                ;;
            anchor__subcmd__program__subcmd__help,dump)
                cmd="anchor__subcmd__program__subcmd__help__subcmd__dump"
                ;;
            anchor__subcmd__program__subcmd__help,extend)
                cmd="anchor__subcmd__program__subcmd__help__subcmd__extend"
                ;;
            anchor__subcmd__program__subcmd__help,help)
                cmd="anchor__subcmd__program__subcmd__help__subcmd__help"
                ;;
            anchor__subcmd__program__subcmd__help,set-buffer-authority)
                cmd="anchor__subcmd__program__subcmd__help__subcmd__set__subcmd__buffer__subcmd__authority"
                ;;
            anchor__subcmd__program__subcmd__help,set-upgrade-authority)
                cmd="anchor__subcmd__program__subcmd__help__subcmd__set__subcmd__upgrade__subcmd__authority"
                ;;
            anchor__subcmd__program__subcmd__help,show)
                cmd="anchor__subcmd__program__subcmd__help__subcmd__show"
                ;;
            anchor__subcmd__program__subcmd__help,upgrade)
                cmd="anchor__subcmd__program__subcmd__help__subcmd__upgrade"
                ;;
            anchor__subcmd__program__subcmd__help,write-buffer)
                cmd="anchor__subcmd__program__subcmd__help__subcmd__write__subcmd__buffer"
                ;;
            *)
                ;;
        esac
    done

    case "${cmd}" in
        anchor)
            opts="-h -V --provider.cluster --provider.wallet --commitment --help --version init build expand verify test fuzz new debugger coverage idl clean deploy migrate upgrade airdrop cluster config shell run keys localnet account completions address balance epoch epoch-info logs show-account keygen program codama legacy-idl help"
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 1 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                --provider.cluster)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --provider.wallet)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --commitment)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__account)
            opts="-h --idl --provider.cluster --provider.wallet --commitment --help <ACCOUNT_TYPE> <ADDRESS>"
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                --idl)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --provider.cluster)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --provider.wallet)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --commitment)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__address)
            opts="-h --provider.cluster --provider.wallet --commitment --help"
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                --provider.cluster)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --provider.wallet)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --commitment)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__airdrop)
            opts="-h --provider.cluster --provider.wallet --commitment --help <AMOUNT> [PUBKEY]"
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                --provider.cluster)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --provider.wallet)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --commitment)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__balance)
            opts="-h --lamports --provider.cluster --provider.wallet --commitment --help [PUBKEY]"
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                --provider.cluster)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --provider.wallet)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --commitment)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__build)
            opts="-i -t -v -p -s -d -b -e -h --skip-lint --ignore-keys --no-idl --idl --idl-ts --verifiable --program-name --solana-version --docker-image --bootstrap --env --no-docs --provider.cluster --provider.wallet --commitment --help [CARGO_ARGS]..."
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                --idl)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                -i)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --idl-ts)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                -t)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --program-name)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                -p)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --solana-version)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                -s)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --docker-image)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                -d)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --bootstrap)
                    COMPREPLY=($(compgen -W "none debian" -- "${cur}"))
                    return 0
                    ;;
                -b)
                    COMPREPLY=($(compgen -W "none debian" -- "${cur}"))
                    return 0
                    ;;
                --env)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                -e)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --provider.cluster)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --provider.wallet)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --commitment)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__clean)
            opts="-h --provider.cluster --provider.wallet --commitment --help"
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                --provider.cluster)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --provider.wallet)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --commitment)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__cluster)
            opts="-h --provider.cluster --provider.wallet --commitment --help list help"
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                --provider.cluster)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --provider.wallet)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --commitment)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__cluster__subcmd__help)
            opts="list help"
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__cluster__subcmd__help__subcmd__help)
            opts=""
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__cluster__subcmd__help__subcmd__list)
            opts=""
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__cluster__subcmd__list)
            opts="-h --provider.cluster --provider.wallet --commitment --help"
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                --provider.cluster)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --provider.wallet)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --commitment)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__codama)
            opts="-h --provider.cluster --provider.wallet --commitment --help convert generate help"
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                --provider.cluster)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --provider.wallet)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --commitment)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__codama__subcmd__convert)
            opts="-o -h --out --provider.cluster --provider.wallet --commitment --help <PATH>"
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                --out)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                -o)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --provider.cluster)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --provider.wallet)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --commitment)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__codama__subcmd__generate)
            opts="-l -p -h --language --path --provider.cluster --provider.wallet --commitment --help <IDL>"
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                --language)
                    COMPREPLY=($(compgen -W "js js-umi rust go" -- "${cur}"))
                    return 0
                    ;;
                -l)
                    COMPREPLY=($(compgen -W "js js-umi rust go" -- "${cur}"))
                    return 0
                    ;;
                --path)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                -p)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --provider.cluster)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --provider.wallet)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --commitment)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__codama__subcmd__help)
            opts="convert generate help"
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__codama__subcmd__help__subcmd__convert)
            opts=""
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__codama__subcmd__help__subcmd__generate)
            opts=""
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__codama__subcmd__help__subcmd__help)
            opts=""
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__completions)
            opts="-h --provider.cluster --provider.wallet --commitment --help bash elvish fish powershell zsh"
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                --provider.cluster)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --provider.wallet)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --commitment)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__config)
            opts="-h --provider.cluster --provider.wallet --commitment --help get set help"
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                --provider.cluster)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --provider.wallet)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --commitment)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__config__subcmd__get)
            opts="-h --provider.cluster --provider.wallet --commitment --help"
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                --provider.cluster)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --provider.wallet)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --commitment)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__config__subcmd__help)
            opts="get set help"
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__config__subcmd__help__subcmd__get)
            opts=""
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__config__subcmd__help__subcmd__help)
            opts=""
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__config__subcmd__help__subcmd__set)
            opts=""
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__config__subcmd__set)
            opts="-u -k -h --url --keypair --provider.cluster --provider.wallet --commitment --help"
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                --url)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                -u)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --keypair)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                -k)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --provider.cluster)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --provider.wallet)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --commitment)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__coverage)
            opts="-h --skip-run --skip-build --output --trace-dir --provider.cluster --provider.wallet --commitment --help [CARGO_ARGS]..."
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                --output)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --trace-dir)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --provider.cluster)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --provider.wallet)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --commitment)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__debugger)
            opts="-h --skip-run --skip-build --skip-lint --gdb --provider.cluster --provider.wallet --commitment --help [TEST_NAME] [CARGO_ARGS]..."
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                --provider.cluster)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --provider.wallet)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --commitment)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__deploy)
            opts="-p -v -h --program-name --program-keypair --verifiable --no-idl --provider.cluster --provider.wallet --commitment --help [SOLANA_ARGS]..."
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                --program-name)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                -p)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --program-keypair)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --provider.cluster)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --provider.wallet)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --commitment)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__epoch)
            opts="-h --provider.cluster --provider.wallet --commitment --help"
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                --provider.cluster)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --provider.wallet)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --commitment)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__epoch__subcmd__info)
            opts="-h --provider.cluster --provider.wallet --commitment --help"
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                --provider.cluster)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --provider.wallet)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --commitment)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__expand)
            opts="-p -h --program-name --stdout --provider.cluster --provider.wallet --commitment --help [CARGO_ARGS]..."
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                --program-name)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                -p)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --provider.cluster)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --provider.wallet)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --commitment)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__fuzz)
            opts="-C -h --harness-dir --provider.cluster --provider.wallet --commitment --help init run list show tmin cmin help"
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                --harness-dir)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                -C)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --provider.cluster)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --provider.wallet)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --commitment)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__fuzz__subcmd__cmin)
            opts="-C -h --corpus-in --corpus-out --release --harness-dir --provider.cluster --provider.wallet --commitment --help <PROGRAM_NAME> <TEST_NAME> [CORPUS_DIR]"
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                --corpus-in)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --corpus-out)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --harness-dir)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                -C)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --provider.cluster)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --provider.wallet)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --commitment)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__fuzz__subcmd__help)
            opts="init run list show tmin cmin help"
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__fuzz__subcmd__help__subcmd__cmin)
            opts=""
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__fuzz__subcmd__help__subcmd__help)
            opts=""
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__fuzz__subcmd__help__subcmd__init)
            opts=""
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__fuzz__subcmd__help__subcmd__list)
            opts=""
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__fuzz__subcmd__help__subcmd__run)
            opts=""
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__fuzz__subcmd__help__subcmd__show)
            opts=""
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__fuzz__subcmd__help__subcmd__tmin)
            opts=""
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__fuzz__subcmd__init)
            opts="-C -h --harness-dir --provider.cluster --provider.wallet --commitment --help <PROGRAM_NAME>"
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                --harness-dir)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                -C)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --provider.cluster)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --provider.wallet)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --commitment)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__fuzz__subcmd__list)
            opts="-C -h --harness-dir --provider.cluster --provider.wallet --commitment --help [PROGRAM_NAME]"
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                --harness-dir)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                -C)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --provider.cluster)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --provider.wallet)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --commitment)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__fuzz__subcmd__run)
            opts="-j -C -h --binary-in --release --coverage --timeout --cores --corpus-in --corpus-out --crashes-out --crashes-meta-out --replay --dry-run --seed --stop-on-crash --max-actions --no-tracing --stateful --max-depth --pool-size --program-so --symbols --mode --lcov-out --stats --harness-dir --provider.cluster --provider.wallet --commitment --help <PROGRAM_NAME> <TEST_NAME>"
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                --binary-in)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --timeout)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --cores)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                -j)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --corpus-in)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --corpus-out)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --crashes-out)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --crashes-meta-out)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --replay)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --seed)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --max-actions)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --max-depth)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --pool-size)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --program-so)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --symbols)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --mode)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --lcov-out)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --harness-dir)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                -C)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --provider.cluster)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --provider.wallet)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --commitment)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__fuzz__subcmd__show)
            opts="-C -h --replay --regen --crashes-dir --crash-meta-dir --harness-dir --provider.cluster --provider.wallet --commitment --help <PROGRAM_NAME> [CRASH_FILE]"
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                --crashes-dir)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --crash-meta-dir)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --harness-dir)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                -C)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --provider.cluster)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --provider.wallet)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --commitment)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__fuzz__subcmd__tmin)
            opts="-C -h --all --release --crash-meta-dir --harness-dir --provider.cluster --provider.wallet --commitment --help <PROGRAM_NAME> <TEST_NAME> [CRASH_FILE]"
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                --crash-meta-dir)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --harness-dir)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                -C)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --provider.cluster)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --provider.wallet)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --commitment)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__help)
            opts="init build expand verify test fuzz new debugger coverage idl clean deploy migrate upgrade airdrop cluster config shell run keys localnet account completions address balance epoch epoch-info logs show-account keygen program codama legacy-idl help"
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__help__subcmd__account)
            opts=""
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__help__subcmd__address)
            opts=""
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__help__subcmd__airdrop)
            opts=""
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__help__subcmd__balance)
            opts=""
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__help__subcmd__build)
            opts=""
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__help__subcmd__clean)
            opts=""
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__help__subcmd__cluster)
            opts="list"
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__help__subcmd__cluster__subcmd__list)
            opts=""
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__help__subcmd__codama)
            opts="convert generate"
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__help__subcmd__codama__subcmd__convert)
            opts=""
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__help__subcmd__codama__subcmd__generate)
            opts=""
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__help__subcmd__completions)
            opts=""
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__help__subcmd__config)
            opts="get set"
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__help__subcmd__config__subcmd__get)
            opts=""
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__help__subcmd__config__subcmd__set)
            opts=""
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__help__subcmd__coverage)
            opts=""
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__help__subcmd__debugger)
            opts=""
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__help__subcmd__deploy)
            opts=""
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__help__subcmd__epoch)
            opts=""
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__help__subcmd__epoch__subcmd__info)
            opts=""
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__help__subcmd__expand)
            opts=""
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__help__subcmd__fuzz)
            opts="init run list show tmin cmin"
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__help__subcmd__fuzz__subcmd__cmin)
            opts=""
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__help__subcmd__fuzz__subcmd__init)
            opts=""
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__help__subcmd__fuzz__subcmd__list)
            opts=""
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__help__subcmd__fuzz__subcmd__run)
            opts=""
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__help__subcmd__fuzz__subcmd__show)
            opts=""
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__help__subcmd__fuzz__subcmd__tmin)
            opts=""
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__help__subcmd__help)
            opts=""
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__help__subcmd__idl)
            opts="init upgrade build fetch fetch-historical convert type close create-buffer set-buffer-authority write-buffer"
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__help__subcmd__idl__subcmd__build)
            opts=""
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__help__subcmd__idl__subcmd__close)
            opts=""
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__help__subcmd__idl__subcmd__convert)
            opts=""
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__help__subcmd__idl__subcmd__create__subcmd__buffer)
            opts=""
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__help__subcmd__idl__subcmd__fetch)
            opts=""
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__help__subcmd__idl__subcmd__fetch__subcmd__historical)
            opts=""
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__help__subcmd__idl__subcmd__init)
            opts=""
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__help__subcmd__idl__subcmd__set__subcmd__buffer__subcmd__authority)
            opts=""
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__help__subcmd__idl__subcmd__type)
            opts=""
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__help__subcmd__idl__subcmd__upgrade)
            opts=""
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__help__subcmd__idl__subcmd__write__subcmd__buffer)
            opts=""
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__help__subcmd__init)
            opts=""
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__help__subcmd__keygen)
            opts="new pubkey recover verify"
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__help__subcmd__keygen__subcmd__new)
            opts=""
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__help__subcmd__keygen__subcmd__pubkey)
            opts=""
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__help__subcmd__keygen__subcmd__recover)
            opts=""
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__help__subcmd__keygen__subcmd__verify)
            opts=""
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__help__subcmd__keys)
            opts="list sync"
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__help__subcmd__keys__subcmd__list)
            opts=""
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__help__subcmd__keys__subcmd__sync)
            opts=""
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__help__subcmd__legacy__subcmd__idl)
            opts="close write-buffer set-buffer set-authority erase-authority authority init upgrade fetch"
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__help__subcmd__legacy__subcmd__idl__subcmd__authority)
            opts=""
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__help__subcmd__legacy__subcmd__idl__subcmd__close)
            opts=""
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__help__subcmd__legacy__subcmd__idl__subcmd__erase__subcmd__authority)
            opts=""
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__help__subcmd__legacy__subcmd__idl__subcmd__fetch)
            opts=""
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__help__subcmd__legacy__subcmd__idl__subcmd__init)
            opts=""
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__help__subcmd__legacy__subcmd__idl__subcmd__set__subcmd__authority)
            opts=""
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__help__subcmd__legacy__subcmd__idl__subcmd__set__subcmd__buffer)
            opts=""
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__help__subcmd__legacy__subcmd__idl__subcmd__upgrade)
            opts=""
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__help__subcmd__legacy__subcmd__idl__subcmd__write__subcmd__buffer)
            opts=""
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__help__subcmd__localnet)
            opts=""
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__help__subcmd__logs)
            opts=""
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__help__subcmd__migrate)
            opts=""
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__help__subcmd__new)
            opts=""
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__help__subcmd__program)
            opts="deploy write-buffer set-buffer-authority set-upgrade-authority show upgrade dump close extend"
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__help__subcmd__program__subcmd__close)
            opts=""
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__help__subcmd__program__subcmd__deploy)
            opts=""
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__help__subcmd__program__subcmd__dump)
            opts=""
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__help__subcmd__program__subcmd__extend)
            opts=""
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__help__subcmd__program__subcmd__set__subcmd__buffer__subcmd__authority)
            opts=""
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__help__subcmd__program__subcmd__set__subcmd__upgrade__subcmd__authority)
            opts=""
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__help__subcmd__program__subcmd__show)
            opts=""
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__help__subcmd__program__subcmd__upgrade)
            opts=""
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__help__subcmd__program__subcmd__write__subcmd__buffer)
            opts=""
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__help__subcmd__run)
            opts=""
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__help__subcmd__shell)
            opts=""
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__help__subcmd__show__subcmd__account)
            opts=""
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__help__subcmd__test)
            opts=""
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__help__subcmd__upgrade)
            opts=""
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__help__subcmd__verify)
            opts=""
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__idl)
            opts="-h --provider.cluster --provider.wallet --commitment --help init upgrade build fetch fetch-historical convert type close create-buffer set-buffer-authority write-buffer help"
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                --provider.cluster)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --provider.wallet)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --commitment)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__idl__subcmd__build)
            opts="-p -o -t -h --program-name --out --out-ts --no-docs --skip-lint --provider.cluster --provider.wallet --commitment --help [CARGO_ARGS]..."
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                --program-name)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                -p)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --out)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                -o)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --out-ts)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                -t)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --provider.cluster)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --provider.wallet)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --commitment)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__idl__subcmd__close)
            opts="-h --seed --priority-fee --provider.cluster --provider.wallet --commitment --help <PROGRAM_ID>"
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                --seed)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --priority-fee)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --provider.cluster)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --provider.wallet)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --commitment)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__idl__subcmd__convert)
            opts="-o -p -h --out --program-id --to-legacy --provider.cluster --provider.wallet --commitment --help <PATH>"
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                --out)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                -o)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --program-id)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                -p)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --provider.cluster)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --provider.wallet)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --commitment)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__idl__subcmd__create__subcmd__buffer)
            opts="-f -h --filepath --priority-fee --provider.cluster --provider.wallet --commitment --help"
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                --filepath)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                -f)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --priority-fee)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --provider.cluster)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --provider.wallet)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --commitment)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__idl__subcmd__fetch)
            opts="-o -h --out --non-canonical --provider.cluster --provider.wallet --commitment --help <PROGRAM_ID>"
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                --out)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                -o)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --provider.cluster)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --provider.wallet)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --commitment)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__idl__subcmd__fetch__subcmd__historical)
            opts="-h --authority --slot --before --after --out-dir --rpc-workers --no-parallel --rpc-max-retries --rpc-retry-backoff-ms --max-signatures --verbose --provider.cluster --provider.wallet --commitment --help <PROGRAM_ID>"
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                --authority)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --slot)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --before)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --after)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --out-dir)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --rpc-workers)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --rpc-max-retries)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --rpc-retry-backoff-ms)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --max-signatures)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --provider.cluster)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --provider.wallet)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --commitment)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__idl__subcmd__help)
            opts="init upgrade build fetch fetch-historical convert type close create-buffer set-buffer-authority write-buffer help"
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__idl__subcmd__help__subcmd__build)
            opts=""
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__idl__subcmd__help__subcmd__close)
            opts=""
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__idl__subcmd__help__subcmd__convert)
            opts=""
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__idl__subcmd__help__subcmd__create__subcmd__buffer)
            opts=""
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__idl__subcmd__help__subcmd__fetch)
            opts=""
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__idl__subcmd__help__subcmd__fetch__subcmd__historical)
            opts=""
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__idl__subcmd__help__subcmd__help)
            opts=""
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__idl__subcmd__help__subcmd__init)
            opts=""
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__idl__subcmd__help__subcmd__set__subcmd__buffer__subcmd__authority)
            opts=""
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__idl__subcmd__help__subcmd__type)
            opts=""
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__idl__subcmd__help__subcmd__upgrade)
            opts=""
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__idl__subcmd__help__subcmd__write__subcmd__buffer)
            opts=""
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__idl__subcmd__init)
            opts="-f -h --filepath --priority-fee --non-canonical --provider.cluster --provider.wallet --commitment --help [PROGRAM_ID]"
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                --filepath)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                -f)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --priority-fee)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --provider.cluster)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --provider.wallet)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --commitment)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__idl__subcmd__set__subcmd__buffer__subcmd__authority)
            opts="-n -h --new-authority --priority-fee --provider.cluster --provider.wallet --commitment --help <BUFFER>"
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                --new-authority)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                -n)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --priority-fee)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --provider.cluster)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --provider.wallet)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --commitment)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__idl__subcmd__type)
            opts="-o -h --out --provider.cluster --provider.wallet --commitment --help <PATH>"
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                --out)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                -o)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --provider.cluster)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --provider.wallet)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --commitment)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__idl__subcmd__upgrade)
            opts="-f -h --filepath --priority-fee --provider.cluster --provider.wallet --commitment --help [PROGRAM_ID]"
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                --filepath)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                -f)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --priority-fee)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --provider.cluster)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --provider.wallet)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --commitment)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__idl__subcmd__write__subcmd__buffer)
            opts="-b -h --buffer --seed --close-buffer --priority-fee --provider.cluster --provider.wallet --commitment --help <PROGRAM_ID>"
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                --buffer)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                -b)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --seed)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --priority-fee)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --provider.cluster)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --provider.wallet)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --commitment)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__init)
            opts="-j -t -h --javascript --no-install --package-manager --no-git --template --anchor-version --test-template --force --install-agent-skills --provider.cluster --provider.wallet --commitment --help <NAME>"
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                --package-manager)
                    COMPREPLY=($(compgen -W "npm yarn pnpm bun" -- "${cur}"))
                    return 0
                    ;;
                --template)
                    COMPREPLY=($(compgen -W "single multiple" -- "${cur}"))
                    return 0
                    ;;
                -t)
                    COMPREPLY=($(compgen -W "single multiple" -- "${cur}"))
                    return 0
                    ;;
                --anchor-version)
                    COMPREPLY=($(compgen -W "v1 v2" -- "${cur}"))
                    return 0
                    ;;
                --test-template)
                    COMPREPLY=($(compgen -W "mocha jest rust mollusk litesvm" -- "${cur}"))
                    return 0
                    ;;
                --provider.cluster)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --provider.wallet)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --commitment)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__keygen)
            opts="-h --provider.cluster --provider.wallet --commitment --help new pubkey recover verify help"
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                --provider.cluster)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --provider.wallet)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --commitment)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__keygen__subcmd__help)
            opts="new pubkey recover verify help"
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__keygen__subcmd__help__subcmd__help)
            opts=""
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__keygen__subcmd__help__subcmd__new)
            opts=""
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__keygen__subcmd__help__subcmd__pubkey)
            opts=""
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__keygen__subcmd__help__subcmd__recover)
            opts=""
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__keygen__subcmd__help__subcmd__verify)
            opts=""
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__keygen__subcmd__new)
            opts="-o -f -w -h --outfile --force --no-passphrase --silent --word-count --provider.cluster --provider.wallet --commitment --help"
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                --outfile)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                -o)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --word-count)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                -w)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --provider.cluster)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --provider.wallet)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --commitment)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__keygen__subcmd__pubkey)
            opts="-h --provider.cluster --provider.wallet --commitment --help [KEYPAIR]"
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                --provider.cluster)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --provider.wallet)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --commitment)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__keygen__subcmd__recover)
            opts="-o -f -h --outfile --force --skip-seed-phrase-validation --no-passphrase --provider.cluster --provider.wallet --commitment --help"
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                --outfile)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                -o)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --provider.cluster)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --provider.wallet)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --commitment)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__keygen__subcmd__verify)
            opts="-h --provider.cluster --provider.wallet --commitment --help <PUBKEY> [KEYPAIR]"
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                --provider.cluster)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --provider.wallet)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --commitment)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__keys)
            opts="-h --provider.cluster --provider.wallet --commitment --help list sync help"
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                --provider.cluster)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --provider.wallet)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --commitment)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__keys__subcmd__help)
            opts="list sync help"
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__keys__subcmd__help__subcmd__help)
            opts=""
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__keys__subcmd__help__subcmd__list)
            opts=""
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__keys__subcmd__help__subcmd__sync)
            opts=""
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__keys__subcmd__list)
            opts="-h --provider.cluster --provider.wallet --commitment --help"
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                --provider.cluster)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --provider.wallet)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --commitment)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__keys__subcmd__sync)
            opts="-p -h --program-name --provider.cluster --provider.wallet --commitment --help"
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                --program-name)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                -p)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --provider.cluster)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --provider.wallet)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --commitment)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__legacy__subcmd__idl)
            opts="-h --provider.cluster --provider.wallet --commitment --help close write-buffer set-buffer set-authority erase-authority authority init upgrade fetch help"
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                --provider.cluster)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --provider.wallet)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --commitment)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__legacy__subcmd__idl__subcmd__authority)
            opts="-h --provider.cluster --provider.wallet --commitment --help <PROGRAM_ID>"
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                --provider.cluster)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --provider.wallet)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --commitment)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__legacy__subcmd__idl__subcmd__close)
            opts="-h --idl-address --print-only --priority-fee --provider.cluster --provider.wallet --commitment --help <PROGRAM_ID>"
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                --idl-address)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --priority-fee)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --provider.cluster)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --provider.wallet)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --commitment)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__legacy__subcmd__idl__subcmd__erase__subcmd__authority)
            opts="-p -h --program-id --priority-fee --provider.cluster --provider.wallet --commitment --help"
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                --program-id)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                -p)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --priority-fee)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --provider.cluster)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --provider.wallet)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --commitment)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__legacy__subcmd__idl__subcmd__fetch)
            opts="-o -h --out --provider.cluster --provider.wallet --commitment --help <ADDRESS>"
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                --out)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                -o)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --provider.cluster)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --provider.wallet)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --commitment)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__legacy__subcmd__idl__subcmd__help)
            opts="close write-buffer set-buffer set-authority erase-authority authority init upgrade fetch help"
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__legacy__subcmd__idl__subcmd__help__subcmd__authority)
            opts=""
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__legacy__subcmd__idl__subcmd__help__subcmd__close)
            opts=""
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__legacy__subcmd__idl__subcmd__help__subcmd__erase__subcmd__authority)
            opts=""
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__legacy__subcmd__idl__subcmd__help__subcmd__fetch)
            opts=""
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__legacy__subcmd__idl__subcmd__help__subcmd__help)
            opts=""
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__legacy__subcmd__idl__subcmd__help__subcmd__init)
            opts=""
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__legacy__subcmd__idl__subcmd__help__subcmd__set__subcmd__authority)
            opts=""
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__legacy__subcmd__idl__subcmd__help__subcmd__set__subcmd__buffer)
            opts=""
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__legacy__subcmd__idl__subcmd__help__subcmd__upgrade)
            opts=""
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__legacy__subcmd__idl__subcmd__help__subcmd__write__subcmd__buffer)
            opts=""
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__legacy__subcmd__idl__subcmd__init)
            opts="-f -h --filepath --priority-fee --provider.cluster --provider.wallet --commitment --help <PROGRAM_ID>"
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                --filepath)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                -f)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --priority-fee)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --provider.cluster)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --provider.wallet)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --commitment)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__legacy__subcmd__idl__subcmd__set__subcmd__authority)
            opts="-p -n -h --program-id --new-authority --print-only --priority-fee --provider.cluster --provider.wallet --commitment --help [ADDRESS]"
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                --program-id)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                -p)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --new-authority)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                -n)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --priority-fee)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --provider.cluster)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --provider.wallet)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --commitment)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__legacy__subcmd__idl__subcmd__set__subcmd__buffer)
            opts="-b -h --buffer --print-only --priority-fee --provider.cluster --provider.wallet --commitment --help <PROGRAM_ID>"
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                --buffer)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                -b)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --priority-fee)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --provider.cluster)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --provider.wallet)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --commitment)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__legacy__subcmd__idl__subcmd__upgrade)
            opts="-f -h --filepath --priority-fee --provider.cluster --provider.wallet --commitment --help <PROGRAM_ID>"
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                --filepath)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                -f)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --priority-fee)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --provider.cluster)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --provider.wallet)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --commitment)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__legacy__subcmd__idl__subcmd__write__subcmd__buffer)
            opts="-f -h --filepath --priority-fee --provider.cluster --provider.wallet --commitment --help <PROGRAM_ID>"
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                --filepath)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                -f)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --priority-fee)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --provider.cluster)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --provider.wallet)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --commitment)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__localnet)
            opts="-e -h --skip-build --skip-deploy --skip-lint --ignore-keys --validator --env --provider.cluster --provider.wallet --commitment --help [CARGO_ARGS]..."
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                --validator)
                    COMPREPLY=($(compgen -W "surfpool legacy" -- "${cur}"))
                    return 0
                    ;;
                --env)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                -e)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --provider.cluster)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --provider.wallet)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --commitment)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__logs)
            opts="-h --include-votes --address --provider.cluster --provider.wallet --commitment --help"
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                --address)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --provider.cluster)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --provider.wallet)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --commitment)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__migrate)
            opts="-h --provider.cluster --provider.wallet --commitment --help"
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                --provider.cluster)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --provider.wallet)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --commitment)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__new)
            opts="-t -h --template --anchor-version --force --provider.cluster --provider.wallet --commitment --help <NAME>"
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                --template)
                    COMPREPLY=($(compgen -W "single multiple" -- "${cur}"))
                    return 0
                    ;;
                -t)
                    COMPREPLY=($(compgen -W "single multiple" -- "${cur}"))
                    return 0
                    ;;
                --anchor-version)
                    COMPREPLY=($(compgen -W "v1 v2" -- "${cur}"))
                    return 0
                    ;;
                --provider.cluster)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --provider.wallet)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --commitment)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__program)
            opts="-h --provider.cluster --provider.wallet --commitment --help deploy write-buffer set-buffer-authority set-upgrade-authority show upgrade dump close extend help"
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                --provider.cluster)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --provider.wallet)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --commitment)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__program__subcmd__close)
            opts="-p -h --program-name --authority --recipient --bypass-warning --provider.cluster --provider.wallet --commitment --help [ACCOUNT]"
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                --program-name)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                -p)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --authority)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --recipient)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --provider.cluster)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --provider.wallet)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --commitment)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__program__subcmd__deploy)
            opts="-p -h --program-name --program-keypair --upgrade-authority --program-id --buffer --max-len --use-rpc --no-idl --final --provider.cluster --provider.wallet --commitment --help [PROGRAM_FILEPATH] [SOLANA_ARGS]..."
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                --program-name)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                -p)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --program-keypair)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --upgrade-authority)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --program-id)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --buffer)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --max-len)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --provider.cluster)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --provider.wallet)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --commitment)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__program__subcmd__dump)
            opts="-h --provider.cluster --provider.wallet --commitment --help <ACCOUNT> <OUTPUT_FILE>"
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                --provider.cluster)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --provider.wallet)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --commitment)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__program__subcmd__extend)
            opts="-p -h --program-name --provider.cluster --provider.wallet --commitment --help [PROGRAM_ID] <ADDITIONAL_BYTES>"
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                --program-name)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                -p)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --provider.cluster)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --provider.wallet)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --commitment)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__program__subcmd__help)
            opts="deploy write-buffer set-buffer-authority set-upgrade-authority show upgrade dump close extend help"
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__program__subcmd__help__subcmd__close)
            opts=""
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__program__subcmd__help__subcmd__deploy)
            opts=""
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__program__subcmd__help__subcmd__dump)
            opts=""
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__program__subcmd__help__subcmd__extend)
            opts=""
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__program__subcmd__help__subcmd__help)
            opts=""
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__program__subcmd__help__subcmd__set__subcmd__buffer__subcmd__authority)
            opts=""
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__program__subcmd__help__subcmd__set__subcmd__upgrade__subcmd__authority)
            opts=""
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__program__subcmd__help__subcmd__show)
            opts=""
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__program__subcmd__help__subcmd__upgrade)
            opts=""
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__program__subcmd__help__subcmd__write__subcmd__buffer)
            opts=""
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__program__subcmd__set__subcmd__buffer__subcmd__authority)
            opts="-h --provider.cluster --provider.wallet --commitment --help <BUFFER> <NEW_BUFFER_AUTHORITY>"
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                --provider.cluster)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --provider.wallet)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --commitment)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__program__subcmd__set__subcmd__upgrade__subcmd__authority)
            opts="-h --new-upgrade-authority --new-upgrade-authority-signer --skip-new-upgrade-authority-signer-check --final --upgrade-authority --provider.cluster --provider.wallet --commitment --help <PROGRAM_ID>"
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                --new-upgrade-authority)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --new-upgrade-authority-signer)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --upgrade-authority)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --provider.cluster)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --provider.wallet)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --commitment)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__program__subcmd__show)
            opts="-h --get-programs --get-buffers --all --provider.cluster --provider.wallet --commitment --help <ACCOUNT>"
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                --provider.cluster)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --provider.wallet)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --commitment)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__program__subcmd__upgrade)
            opts="-p -h --program-filepath --program-name --buffer --upgrade-authority --max-retries --use-rpc --provider.cluster --provider.wallet --commitment --help <PROGRAM_ID> [SOLANA_ARGS]..."
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                --program-filepath)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --program-name)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                -p)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --buffer)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --upgrade-authority)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --max-retries)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --provider.cluster)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --provider.wallet)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --commitment)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__program__subcmd__write__subcmd__buffer)
            opts="-p -h --program-name --buffer --buffer-authority --max-len --provider.cluster --provider.wallet --commitment --help [PROGRAM_FILEPATH]"
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                --program-name)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                -p)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --buffer)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --buffer-authority)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --max-len)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --provider.cluster)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --provider.wallet)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --commitment)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__run)
            opts="-h --provider.cluster --provider.wallet --commitment --help <SCRIPT> [SCRIPT_ARGS]..."
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                --provider.cluster)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --provider.wallet)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --commitment)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__shell)
            opts="-h --provider.cluster --provider.wallet --commitment --help"
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                --provider.cluster)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --provider.wallet)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --commitment)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__show__subcmd__account)
            opts="-o -h --lamports --output-file --output --provider.cluster --provider.wallet --commitment --help <ACCOUNT_ADDRESS>"
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                --output-file)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                -o)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --output)
                    COMPREPLY=($(compgen -W "json json-compact" -- "${cur}"))
                    return 0
                    ;;
                --provider.cluster)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --provider.wallet)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --commitment)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__test)
            opts="-p -e -h --program-name --skip-deploy --skip-lint --skip-local-validator --skip-build --no-idl --detach --run --script --validator --profile --env --provider.cluster --provider.wallet --commitment --help [ARGS]... [CARGO_ARGS]..."
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                --program-name)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                -p)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --run)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --script)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --validator)
                    COMPREPLY=($(compgen -W "surfpool legacy" -- "${cur}"))
                    return 0
                    ;;
                --env)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                -e)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --provider.cluster)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --provider.wallet)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --commitment)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__upgrade)
            opts="-p -h --program-id --max-retries --provider.cluster --provider.wallet --commitment --help <PROGRAM_FILEPATH> [SOLANA_ARGS]..."
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                --program-id)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                -p)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --max-retries)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --provider.cluster)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --provider.wallet)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --commitment)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
        anchor__subcmd__verify)
            opts="-h --repo-url --commit-hash --current-dir --program-name --provider.cluster --provider.wallet --commitment --help <PROGRAM_ID> [ARGS]..."
            if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then
                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
                return 0
            fi
            case "${prev}" in
                --repo-url)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --commit-hash)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --program-name)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --provider.cluster)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --provider.wallet)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                --commitment)
                    COMPREPLY=($(compgen -f "${cur}"))
                    return 0
                    ;;
                *)
                    COMPREPLY=()
                    ;;
            esac
            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
            return 0
            ;;
    esac
}

if [[ "${BASH_VERSINFO[0]}" -eq 4 && "${BASH_VERSINFO[1]}" -ge 4 || "${BASH_VERSINFO[0]}" -gt 4 ]]; then
    complete -F _anchor -o nosort -o bashdefault -o default anchor
else
    complete -F _anchor -o bashdefault -o default anchor
fi
