1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
#compdef usque-warp _arguments \ '1: :->cmds' \ '*::arg:->args' case $state in cmds) local -a commands commands=( 'connect:Connect to WARP' 'disconnect:Disconnect from WARP' 'status:Show connection status' ) _describe 'command' commands ;; esac