3
if (( CURRENT == 2 )); then
8
'( x l v u d m c p t)a[Add \(Or replace\) to archive]'
9
'(a l v u d m c p t)x[EXtract from archive]'
10
'(a x v u d m c p t)l[List]'
11
'(a x l u d m c p t)v[Verbose List]'
12
'(a x l v d m c p t)u[Update newer files to archive]'
13
'(a x l v u m c p t)d[Delete from archive]'
14
'(a x l v u d c p t)m[Move to archive]'
15
'(a x l v u d m p t)c[re-Construct new archive]'
16
'(a x l v u d m c t)p[Print to STDOUT from archive]'
17
'(a x l v u d m c p )t[Test file CRC in archive]'
20
if [ "${words[2]#-}" != "" ]; then
25
'f[force\(over write at extract\)]'
26
't[FILES are TEXT file]'
27
'e[TEXT code convert from/to EUC]'
28
'g[Generic format \(for compatibility\)]'
33
'd[delete FILES after]'
34
'z[files not compress]'
35
'( 1 2)0[header level 0]'
36
'(0 2)1[header level 1]'
37
'(0 1 )2[header level 2]'
41
lhacmds=($lhacmds 'd[delete FILES after]')
44
lhacmds=($lhacmds 'i[ignore directory path]')
49
_values -s '' 'lha command' \
52
elif (( CURRENT == 3 )); then
54
'*:LHA file:_files -g \*.lzh' && return 0
58
if [ -f "$words[3]" ]; then
59
_lzh_cache_list=`$words[1] lq $words[3] | awk '{print $8}'`
60
_lzh_cache_list=("${(@f)${_lzh_cache_list}}")
62
_wanted files expl 'file from archive' _multi_parts / _lzh_cache_list
66
_message -r "Archive file is not found : ${words[3]}"
73
'*:file:_files' && return 0