1 2 3 4 5
#compdef rsync _arguments -- '*=COMMAND*:command:_command' \ '*=FILE*:file:_files' \ '*=DIR*:directory:_files -/'