#compdef eix-sync
_arguments -s -S -A '-*' : \
'(-)'{'-h','-\\?'}'[help]' \
'-i[ignore all previous options]' \
'-s+[SERVER (rsync from SERVER; this implies -0)]:server to sync from: _hosts' \
'-2+[SERVER (rsync to SERVER)]:server to sync to: _hosts' \
'-0[no eix -sync]' \
'-U[do not touch database and omit @ hooks after eix-update]' \
'-u[update database only and show differences. Equivalent to -0l@s ""]' \
'-l[do not call layman or ! hooks]' \
'-@[do not execute @ or @@ hooks]' \
'-S[do not execute @ hooks after emerge --sync]' \
'-M[run emerge -metadata]' \
'-N[cancel previous -M]' \
'-t[use temporary file to save current database]' \
'-T[do not measure time]' \
'-q[be quiet (close stdout)]' \
'(-c -W)-w[run emerge-webrsync instead of emerge --sync]' \
'(-c -w)-W[run emerge-delta-webrsync instead of emerge --sync]' \
'(-w -W)-c+[CMD (run CMD instead of emerge --sync)]:command replacing emerge --sync:_files' \
'*-C+[OPT (add OPT to emerge --sync)]:emerge --sync option: ' \
'*-o+[OPT (add OPT to eix-update)]:eix-update option: ' \
'*-L+[OPT (add OPT to layman)]:layman option: ' \
'-r[clear /var/cache/edb/dep/* before syncing]' \
'-R[cancel previous -r]' \
'-v[verbose]' \
'-n[dry run; combine with -v]' \
'-H[no status line update]'
