summary refs log tree commit diff
path: root/Completion
diff options
context:
space:
mode:
authorClint Adams <clint@users.sourceforge.net>2005-11-29 16:39:20 +0000
committerClint Adams <clint@users.sourceforge.net>2005-11-29 16:39:20 +0000
commit582c6d2098e15427e7300660810b544b48a9626c (patch)
tree4cee028cc56bb24cdd9b0e3462a5276d03e74480 /Completion
parentfac5d69b8b4f154d0105a8278160cb18a04631f9 (diff)
downloadzsh-582c6d2098e15427e7300660810b544b48a9626c.tar.gz
zsh-582c6d2098e15427e7300660810b544b48a9626c.tar.xz
zsh-582c6d2098e15427e7300660810b544b48a9626c.zip
22046: descriptions for unrar commands, some additional switches.
Diffstat (limited to 'Completion')
-rw-r--r--Completion/Unix/Command/_rar25
1 files changed, 23 insertions, 2 deletions
diff --git a/Completion/Unix/Command/_rar b/Completion/Unix/Command/_rar
index 57a5a995d..1e3a26166 100644
--- a/Completion/Unix/Command/_rar
+++ b/Completion/Unix/Command/_rar
@@ -20,6 +20,7 @@ common=(
   '-o\+[overwrite existing files]'
   '-o\-[do not overwrite existing files]'
   '-ow[save or restore file owner and group]'
+  '-p+:password'
   '-p\-[do not query password]'
   '-r[recurse subdirectorie]'
   '-ta+[process files modified after a date]:date (YYYYMMDDHHMMSS)'
@@ -37,9 +38,27 @@ common=(
 case $service in
   unrar)
     if (( CURRENT == 2 )); then
-      _wanted commands expl 'rar command' compadd e l lt p t v vt x && return
+       _values 'rar command' \
+	'e[extract files to current directory]' \
+	'l[list archive]' \
+	'lt[list archive (technical format)]' \
+	'lb[list archive (bare format)]' \
+	'p[print file to stdout]' \
+	't[test archive files]' \
+	'v[verbosely list archive]' \
+	'vt[verbosely list archive (technical format)]' \
+	'vb[verbosely list archive (bare format)]' \
+	'x[extract files with full path]' && return
     else
-      _arguments "$common[@]" '*:RAR files:_files -g \*.rar\(-.\)' && return
+      _arguments -S \
+	'-ep3[expand paths to full including the drive letter]' \
+        '-idc[disable ___ display]' \
+        '-idd[disable ___ display]' \
+        '-idq[disable ___ display]' \
+	'-n+:file to include:_files' \
+	'-n@+:file of files to include:_files' \
+        "$common[@]" \
+        '*:RAR files:_files -g \*.rar\(-.\)' && return
     fi
   ;;
   rar)
@@ -56,6 +75,7 @@ case $service in
 	'k[lock archive]' \
 	'l[list archive]' \
 	'lt[list archive (technical format)]' \
+	'lb[list archive (bare format)]' \
 	'm[move to archive]' \
 	'mf[move to archive (files only)]' \
 	'p[print file to stdout]' \
@@ -68,6 +88,7 @@ case $service in
 	'u[update files in archive]' \
 	'v[verbosely list archive]' \
 	'vt[verbosely list archive (technical format)]' \
+	'vb[verbosely list archive (bare format)]' \
 	'x[extract files with full path]' && return
     else
       _arguments -S \