aboutsummaryrefslogtreecommitdiffstats
path: root/src/_periscope
blob: a4fa29e01a197c95c5a0ff354843f9a855dd7286 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#compdef periscope
# ------------------------------------------------------------------------------
# Description
# -----------
#
#  Completion script for Periscope (https://code.google.com/archive/p/periscope/).
#
# ------------------------------------------------------------------------------
# Authors
# -------
#
#  * Julien Nicoulaud <julien.nicoulaud@gmail.com>
#
# ------------------------------------------------------------------------------


_arguments \
  '(- : *)'{-h,--help}'[show help message and exit]' \
  '(- : *)--version[show version number and exit]' \
  '*'{-l,--language}'[wanted language]: :_language_codes ISO-639-1' \
  '(-f --force)'{-f,--force}'[replace existing subtitle file]' \
  '(-q --query)'{-q,--query}'[query to send to the subtitles website]:queries' \
  '--list-plugins[list all plugins supported by periscope]' \
  '--list-active-plugins[list all plugins used to search subtitles]' \
  '--cache-folder[cache/config directory to use]: :_files -/' \
  '--quiet[run in quiet mode (only show warn and error messages)]' \
  '--debug[set the logging level to debug]' \
  '*: :_files'

# Local Variables:
# mode: Shell-Script
# sh-indentation: 2
# indent-tabs-mode: nil
# sh-basic-offset: 2
# End:
# vim: ft=zsh sw=2 ts=2 et