#compdef portprotonqt

_portprotonqt() {
    local -a opts

    opts=(
        '--fullscreen[Launch in fullscreen mode]'
        '--resolution[Launch with specific resolution]:WIDTHxHEIGHT:(1920x1080 1280x720 2560x1440 3840x2160)'
        '--debug-level[Set logging level]:LEVEL:(ALL DEBUG INFO WARNING ERROR CRITICAL)'
        '--add-steam-compat-tool[Add as Steam compatibility tool]'
        '--reinstall-steam-compat-tool[Reinstall Steam compatibility tool]'
        '--remove-steam-compat-tool[Remove Steam compatibility tool]'
        '--clear-cache[Clear PortProtonQt cache and exit]'
        '--reset-settings[Reset PortProtonQt settings and exit]'
        '--ppqtos[Show the system tab]'
        '--silent[Launch .exe file without GUI]'
        '--restore-prefix[Restore prefix from .ppack backup]:PPACK file:_files -g "*.ppack"'
        '--create-backup[Create prefix backup]:PREFIX: :BACKUP_DIR:_files -/'
        '(-h --help)'{-h,--help}'[Show help message]'
    )

    _arguments -s "${opts[@]}" && return 0
    _files -g "*.(exe|ppack)"
}

