#compdef okular
local extns

extns="(pdf|ps|eps|dvi)(|.gz|.bz2)|djvu|tif|tiff|chm|cbr|cbz|epub"

_arguments \
  '(-p --page)'{-p,--page}'[page of the document to be shown]:page: ' \
  '--presentation[start the document in presentation mode]' \
  '--unique[unique instance control]' \
  "*:okular document:_files -g '*.(#i)($extns)(-.)'"
