complete -c xplayer -s '?' -l help -d 'Show help and exit'
complete -c xplayer -l version -d 'Show version and exit'

complete -c xplayer -l play-pause -d 'Toggle between play
and pause'
complete -c xplayer -l play -d Play
complete -c xplayer -l pause -d Pause
complete -c xplayer -l next -d 'Skip to the next movie or chapter in the playlist'
complete -c xplayer -l previous -d 'Return to the previous movie or chapter in the playlist'
complete -c xplayer -l seek-fwd -d 'Seek forwards 15 seconds'
complete -c xplayer -l seek-bwd -d 'Seek backwards 15 seconds'
complete -c xplayer -l volume-up -d 'Raise the volume by 8%'
complete -c xplayer -l volume-down -d 'Lower the volume by 8%'
complete -c xplayer -l mute -d 'Toggle between muted and unmuted audio'
complete -c xplayer -l fullscreen -d 'Toggle fullscreen mode'
complete -c xplayer -l toggle-controls -d 'Toggle showing the controls'
complete -c xplayer -l quit -d Quit
complete -c xplayer -l enqueue -d 'Add a new stream to the playlist'
complete -c xplayer -l replace -d 'Play from the playlist'
