__app="setup-gia-9"

_mycommand() {
    local cur prev opts
    COMPREPLY=()
    cur="${COMP_WORDS[COMP_CWORD]}"
    prev="${COMP_WORDS[COMP_CWORD-1]}"

    opts="
    install-gia-programs
    uninstall-gia-programs
    create-gia-shortcuts
    remove-other-from-desktop
    remove-gia-shortcuts
    restore-desktop
    disable-updates
    enable-updates
    disable-wifi
    enable-wifi
    disable-network
    enable-network
    restrict-network-change
    allow-network-change
    disable-sounds
    enable-sounds
    disable-mos-identify
    enable-mos-identify
    disable-power-management
    enable-power-management
    disable-mos-appstore
    enable-mos-appstore
    setup-all-for-gia
    remove-all-setup
    help
    "

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

complete -F _mycommand ${__app}
