| 1 |
#compdef gpgv-sq |
| 2 |
|
| 3 |
autoload -U is-at-least |
| 4 |
|
| 5 |
_gpgv-sq() { |
| 6 |
typeset -A opt_args |
| 7 |
typeset -a _arguments_options |
| 8 |
local ret=1 |
| 9 |
|
| 10 |
if is-at-least 5.2; then |
| 11 |
_arguments_options=(-s -S -C) |
| 12 |
else |
| 13 |
_arguments_options=(-s -C) |
| 14 |
fi |
| 15 |
|
| 16 |
local context curcontext="$curcontext" state line |
| 17 |
_arguments "${_arguments_options[@]}" \ |
| 18 |
'--keyring=[take the keys from the keyring FILE]:FILE: ' \ |
| 19 |
'-o+[write output to FILE]:FILE: ' \ |
| 20 |
'--output=[write output to FILE]:FILE: ' \ |
| 21 |
'--status-fd=[write status info to this FD]:FD: ' \ |
| 22 |
'--weak-digest=[reject signatures made with ALGO]:ALGO: ' \ |
| 23 |
'-v[verbose]' \ |
| 24 |
'--verbose[verbose]' \ |
| 25 |
'-q[be somewhat more quiet]' \ |
| 26 |
'--quiet[be somewhat more quiet]' \ |
| 27 |
'--ignore-time-conflict[make timestamp conflicts only a warning]' \ |
| 28 |
'-h[Print help]' \ |
| 29 |
'--help[Print help]' \ |
| 30 |
&& ret=0 |
| 31 |
} |
| 32 |
|
| 33 |
(( $+functions[_gpgv-sq_commands] )) || |
| 34 |
_gpgv-sq_commands() { |
| 35 |
local commands; commands=() |
| 36 |
_describe -t commands 'gpgv-sq commands' commands "$@" |
| 37 |
} |
| 38 |
|
| 39 |
if [ "$funcstack[1]" = "_gpgv-sq" ]; then |
| 40 |
_gpgv-sq "$@" |
| 41 |
else |
| 42 |
compdef _gpgv-sq gpgv-sq |
| 43 |
fi |