#compdef fzy

_fzy() {
  _arguments -s -S -C \
    {-l,--lines=}'[Specify how many lines of results to show (default 10)]:LINES:' \
    {-p,--prompt=}'[Input prompt (default '"'> '"')]:PROMPT:' \
    {-q,--query=}'[Use QUERY as the initial search string]:QUERY:' \
    {-e,--show-matches=}'[Output the sorted matches of QUERY]:QUERY:' \
    {-t,--tty=}'[Specify file to use as TTY device (default /dev/tty)]:TTY:' \
    {-s,--show-scores}'[Show the scores of each match]' \
    {-0,--read-null}'[Read input delimited by ASCII NUL characters]' \
    {-j,--workers}'[Use NUM workers for searching. (default is # of CPUs)]:NUM:' \
    {-i,--show-info}'[Show selection info line]' \
    {-h,--help}'[Display this help and exit]' \
    {-v,--version}'[Output version information and exit]' \
    '*:file:_files'
}

_fzy
