diff options
author | Doug Kearns <dkearns@users.sourceforge.net> | 2005-06-24 12:43:19 +0000 |
---|---|---|
committer | Doug Kearns <dkearns@users.sourceforge.net> | 2005-06-24 12:43:19 +0000 |
commit | 4a923de007235196b95229e0d587b80da7b491c8 (patch) | |
tree | 8242c1878cb5656dac6ec93f2bbb4afdbafe4baa /Completion/Unix/Command | |
parent | 14ba91fafd182fbd75bc6c152e8fe749a8097f4a (diff) | |
download | zsh-4a923de007235196b95229e0d587b80da7b491c8.tar.gz zsh-4a923de007235196b95229e0d587b80da7b491c8.tar.xz zsh-4a923de007235196b95229e0d587b80da7b491c8.zip |
21379: improve wget --restrict-file-names completion
Diffstat (limited to 'Completion/Unix/Command')
-rw-r--r-- | Completion/Unix/Command/_wget | 8 |
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 |