summaryrefslogtreecommitdiff
path: root/Completion/Unix/Command/_links
diff options
context:
space:
mode:
authorOliver Kiddle <opk@users.sourceforge.net>2005-06-08 12:45:24 +0000
committerOliver Kiddle <opk@users.sourceforge.net>2005-06-08 12:45:24 +0000
commit0ba8ae87eac21281e0b17eb9cbb523d133067a4a (patch)
tree614cc49ce90c3c2562f83d6739f8ea76dc75d7f0 /Completion/Unix/Command/_links
parent9181f0e3059862d2d8cc109bc849f8705cbbc23c (diff)
downloadzsh-0ba8ae87eac21281e0b17eb9cbb523d133067a4a.tar.gz
zsh-0ba8ae87eac21281e0b17eb9cbb523d133067a4a.zip
21315: make completion functions give precendence to descriptions passed as
parameters and cleanup descriptons in calling functions
Diffstat (limited to 'Completion/Unix/Command/_links')
-rw-r--r--Completion/Unix/Command/_links29
1 files changed, 19 insertions, 10 deletions
diff --git a/Completion/Unix/Command/_links b/Completion/Unix/Command/_links
index c8a4995d5..464068d46 100644
--- a/Completion/Unix/Command/_links
+++ b/Completion/Unix/Command/_links
@@ -5,25 +5,25 @@ typeset -A opt_args
_arguments -C \
'(-help)-anonymous[restrict links so that it can run on an anonymous account]' \
- '(-help)-assume-codepage[use the given codepage when the webpage did not specify its]:codepage:' \
+ '(-help)-assume-codepage[specify default codepage to use]:codepage' \
'(-help)-async-dns[asynchronous DNS resolver]:bool:((0\:on 1\:off))' \
'(-help)-download-dir[default download directory]:_files -/' \
'(-help)-driver[graphics driver to use]:graphics driver:->graphics_drivers' \
'(-help)-dump[dump the page as pure text]' \
- '(-help)-format-cache-size[number of formatted document pages cached]:pages:' \
- '(-help)-ftp-proxy[host and port number of the FTP proxy, or blank]:hostport:_hosts' \
+ '(-help)-format-cache-size[number of formatted document pages cached]:pages' \
+ '(-help)-ftp-proxy[specify ftp proxy server]:proxy:->proxies' \
'(-help)-g[run in graphics mode rather than plain text mode]' \
'-help[prints the help screen]' \
- '(-help)-http-proxy[host and port number of the HTTP proxy, or blank]:hostport:_hosts' \
- '(-help)-image-cache-size[image cache memory]:kilobytes:' \
- '(-help)-max-connections[maximum number of concurrent connections]:max:' \
- '(-help)-max-connections-to-host[maximum number of concurrent connection to a given host]:max:' \
- '(-help)-memory-cache-size[cache memory]:kilobytes:' \
+ '(-help)-http-proxy[specify web proxy server]:proxy:->proxies' \
+ '(-help)-image-cache-size[image cache memory]:memory (kilobytes)' \
+ '(-help)-max-connections[maximum number of concurrent connections]:connections' \
+ '(-help)-max-connections-to-host[maximum number of concurrent connection to a given host]:connections' \
+ '(-help)-memory-cache-size[cache memory]:kilobytes' \
'(-help)-no-connect[runs links as a separate instance]' \
- '(-help)-receive-timeout[timeout on receive]:secs:' \
+ '(-help)-receive-timeout[timeout on receive]:timeout (seconds)' \
'(-help)-retries[number of retries]:retries' \
'(-help)-source[dump the source page]' \
- '(-help)-unrestartable-receive-timeout[timeout on non restartable connections]:secs:' \
+ '(-help)-unrestartable-receive-timeout[timeout on non restartable connections]:timeout (seconds)' \
'(-help)-version[prints the links version number and exit]' \
':URL:->html' && ret=0
@@ -35,6 +35,15 @@ case $state in
vals=(${=${${${(f)"$(_call_program links-graphics-drivers links -driver help 2>&1)"}[-1]}//','/''}} )
_describe -t links-graphics-drivers 'graphics driver' vals && ret=0
;;
+ proxies)
+ local suf=-S:
+ if compset -P '*:'; then
+ _message -e ports 'port number'
+ else
+ compset -S ':*' && suf=
+ _hosts $suf && ret=0
+ fi
+ ;;
esac
return ret