# vim: ft=bash

_update() {
    local cur prev words cword opts
    _init_completion || return
    opts='-h -d'
    if [[ $cur == -* ]]
    then
        COMPREPLY=($(compgen -W "$opts" -- "$cur"))
    else
        COMPREPLY=($(compgen -W "all apt flatpak workbench" -- "$cur"))
    fi
}

complete -F _update update
