1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-02 10:01:11 +02:00

21379: improve wget --restrict-file-names completion

This commit is contained in:
Doug Kearns 2005-06-24 12:43:19 +00:00
parent 14ba91fafd
commit 4a923de007
2 changed files with 12 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2005-06-24 Doug Kearns <djkea2@gus.gscit.monash.edu.au>
* 21379: Completion/Unix/Command/_wget: improve --restrict-file-names
completion by allowing 'nocontrol' as an argument
2005-06-21 Doug Kearns <djkea2@gus.gscit.monash.edu.au>
* 21334: Completion/Linux/Command/_pkgtool: fix typo in -target_dir

View file

@ -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