--- _links-orig 2003-11-17 15:26:25.000000000 +0100 +++ _links 2003-12-03 22:32:44.000000000 +0100 @@ -3,12 +3,18 @@ local curcontext="$curcontext" state line typeset -A opt_args +_list_driver () { + vals=(${=${${${(f)"$(_call_program links-graphics-driver links -driver help 2>&1)"}[-1]}//','/''}} ) + _describe -t links-graphics-driver 'graphic drivers' vals && ret=0 + +} + _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)-async-dns[asynchronous DNS resolver]:bool:((0\:on 1\:off))' \ '(-help)-download-dir[default download directory]:_files -/' \ - '(-help)-driver[graphics driver to use]:driver:(x svgalib fb pmshell atheos)' \ + '(-help)-driver[graphics driver to use]:graphic drivers:_list_driver' \ '(-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' \