summaryrefslogtreecommitdiff
path: root/Completion/Unix/Command/_rar
diff options
context:
space:
mode:
Diffstat (limited to 'Completion/Unix/Command/_rar')
-rw-r--r--Completion/Unix/Command/_rar37
1 files changed, 30 insertions, 7 deletions
diff --git a/Completion/Unix/Command/_rar b/Completion/Unix/Command/_rar
index c766b198f..8b12dc8eb 100644
--- a/Completion/Unix/Command/_rar
+++ b/Completion/Unix/Command/_rar
@@ -22,10 +22,10 @@ common=(
'-ow[save or restore file owner and group]'
'-p\-[do not query password]'
'-r[recurse subdirectorie]'
- '-ta[process files modified after <date> in YYYYMMDDHHMMSS format]'
- '-tb[process files modified before <date> in YYYYMMDDHHMMSS format]'
- '-tn[process files newer than <time>]'
- '-to[process files older than <time>]'
+ '-ta+[process files modified after a date]:date (YYYYMMDDHHMMSS)'
+ '-tb+[process files modified before a date]:date (YYYYMMDDHHMMSS)'
+ '-tn+[process files newer than a specified time]:time'
+ '-to+[process files older than a specified time]:time'
'-u[update files]'
'-v[create volumes with size autodetection or list all volumes]'
'-ver[file version control]'
@@ -44,10 +44,33 @@ case $service in
;;
rar)
if (( CURRENT == 2 )); then
- _wanted commands expl 'rar command' compadd \
- a c cf cw d e f i k l lt m mf p r rc rr rv s t u v vt x && return
+ _values 'rar command' \
+ 'a[add files to archive]' \
+ 'c[add archive comment]' \
+ 'cf[add files comment]' \
+ 'cw[write archive comment to file]' \
+ 'd[delete files from archive]' \
+ 'e[extract files to current directory]' \
+ 'f[freshen files in archive]' \
+ 'i[find string in archives]' \
+ 'k[lock archive]' \
+ 'l[list archive]' \
+ 'lt[list archive (technical format)]' \
+ 'm[move to archive]' \
+ 'mf[move to archive (files only)]' \
+ 'p[print file to stdout]' \
+ 'r[repair archive]' \
+ 'rc[reconstruct missing volumes]' \
+ 'rr[add data recovery record]' \
+ 'rv[create recovery volumes]' \
+ 's[convert archive to or from SFX]' \
+ 't[test archive files]' \
+ 'u[update files in archive]' \
+ 'v[verbosely list archive]' \
+ 'vt[verbosely list archive (technical format)]' \
+ 'x[extract files with full path]' && return
else
- _arguments -s \
+ _arguments -S \
'-ag[generate archive name using the current date]' \
'-as[synchronize archive contents]' \
'-av[put authenticity verification (registered versions only)]' \