1#compdef dupload 2 3if (( ! $+_dupload_sites )); then 4 _dupload_sites=( 5 $(grep -hs "^\$cfg" /etc/dupload.conf ~/.dupload.conf | sed 's/^\$cfg{\([^}]*\)}.*$/\1/') 6 ) 7fi 8 9_arguments \ 10 '--to:nickname[nickname of target site]:('"$_dupload_sites"')' \ 11 '(-d --debug)'{-d,--debug}'[ftp verbosity]:debuglevel:' \ 12 '(-f --force)'{-f,--force}'[upload ignoring logs]' \ 13 '(-k --keep)'{-k,--keep}'[keep going, skip broken]' \ 14 '--no[dry run]' \ 15 '--nomail[suppress announcement]' \ 16 '--mailonly[dry run and real announcement]' \ 17 '--noarchive[add anti-archival header]' \ 18 '(-p --print)'{-p,--print}'[print config legibly]' \ 19 '(-q --quiet)'{-q,--quiet}'[quiet]' \ 20 '(-V --Version)'{-V,--Version}'[display version information]' \ 21 '*:changes file:_files -g "*.changes(-.)"' 22