From 4a923de007235196b95229e0d587b80da7b491c8 Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Fri, 24 Jun 2005 12:43:19 +0000 Subject: 21379: improve wget --restrict-file-names completion --- Completion/Unix/Command/_wget | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'Completion/Unix/Command/_wget') 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 -- cgit 1.4.1