menu: added new Keywords tag to .desktop files
[barry.git] / zsh / _btardump
blob3c1f546a215a2ec19df80be126a6abfa69131827
1 #compdef btardump
3 local _btardump_options
5 local state
8 _btardump_options=(
9         '-h[Show the most relevant command line options]' \
10         '-d=[Load database FROM device and dump to screen]:Database:' \
11         '-i=[International charset for string conversions]:International charset:->iconv' \
12         '-V[Dump records using MIME vformats where possible]' \
13         '*:archive file:->archive'
17 _btardump_iconv() {
18         local result
20         result=( ${${${(f)"$(_call_program codesets iconv --list)"}## #}%//} )
22         compadd -a "$@" - result
26 _arguments -C -s "$_btardump_options[@]" && return 0
29 case $state in
30         iconv)
31                 _btardump_iconv && return 0
32         ;;
34         archive)
35                 _files -g '*.((tar|TAR).(gz|GZ|Z)|tgz)(-.)' && return 0
36         ;;
37 esac