about summary refs log tree commit diff
path: root/Completion
diff options
context:
space:
mode:
Diffstat (limited to 'Completion')
-rw-r--r--Completion/Unix/Command/_wget8
1 files changed, 7 insertions, 1 deletions
diff --git a/Completion/Unix/Command/_wget b/Completion/Unix/Command/_wget
index 836d996d5..fd603ba85 100644
--- a/Completion/Unix/Command/_wget
+++ b/Completion/Unix/Command/_wget
@@ -37,7 +37,7 @@ _arguments -C -s \
   '--bind-address=:address to bind to (hostname or IP):_hosts' \
   '--limit-rate=[specify limit to download rate]:download rate limit' \
   '--dns-cache=[disable caching DNS lookups]:dns cache:(on off)' \
-  '--restrict-file-names=[restrict chars in file names to ones OS allows]:OS:(unix windows)' \
+  '--restrict-file-names=[restrict chars in file names to ones OS allows]:OS:->restrict' \
   '(--force-directories -x)'{--force-directories,-x}'[force creation of directories]' \
   '(--directory-prefix -P)'{--directory-prefix=,-P+}'[specify prefix to save files to]:prefix:_files -/' \
   '--cut-dirs=:number:' \
@@ -114,4 +114,10 @@ case "$state" in
       'r[don'\''t remove listing]' \
       'p[no parent]'
   ;;
+  restrict)
+    _values -s , 'filename char restriction' \
+      '(windows)unix' \
+      '(unix)windows' \
+      '(unix windows)nocontrol'
+  ;;
 esac