diff options
Diffstat (limited to 'Completion/Unix/Command/_wget')
-rw-r--r-- | Completion/Unix/Command/_wget | 105 |
1 files changed, 47 insertions, 58 deletions
diff --git a/Completion/Unix/Command/_wget b/Completion/Unix/Command/_wget index 3f195cc8c..eb940782d 100644 --- a/Completion/Unix/Command/_wget +++ b/Completion/Unix/Command/_wget @@ -3,72 +3,67 @@ local curcontext="$curcontext" state line typeset -A opt_args -local tmp1 tmp2 - _arguments -C -s \ - '(--version)-V[version]' '(-V)--version' \ - '(--help)-h[help]' '(-h)--help' \ - '(--background)-b[background]' '(-b)--background' \ - {'(--execute)-e+[execute]','(-e)--execute='}':.wgetrc command:' \ - {'(--output-file)-o+[output file]','(-o)--output-file='}':log file to output:_files' \ - {'(--append-output)-a+[append output file]','(-a)--append-output='}':log file to append:_files' \ - '(--debug)-d[debug]' '(-d)--debug' \ - '(--quiet)-q[quiet]' '(-q)--quiet' \ - '(--verbose)-v[verbose]' '(-v)--verbose' \ - '*-n+[no]:flags:->noflags' \ - {'(--input-file)-i+[input file]','(-i)--input-file='}':file containing URLs:_files' \ - '(--force-html)-F[force html]' '(-F)--force-html' \ - {'(--base)-B+[prepend URL to relative links]','(-B)--base='}':base URL:_urls' \ + '(--version -V)'{--version,-V}'[display version info]' \ + '(--help -h)'{--help,-h}'[display help]' \ + '(--background -b)'{--background,-b}'[run in background]' \ + '(--execute -e)'{--execute=,-e+}'[execute .wgetrc command]:.wgetrc command' \ + '(--output-file -o --append-output -a)'{--output-file=,-o+}'[specify output logfile]:log file to output:_files' \ + '(--append-output -a --output-file -o)'{--append-output=,-a+}'[specify output logfile to append to]:log file to append:_files' \ + '(--debug -d)'{--debug,-d}'[turn on debug output]' \ + '(--quiet -q --verbose -v --non-verbose -nv)'{--quiet,-q}'[turn off output]' \ + '(--quiet -q --verbose -v --non-verbose -nv)'{--verbose,-v}'[turn on verbose output]' \ + '*-n+[turn off flags]:flags:->noflags' \ + '(--input-file -i)'{--input-file=,-i+}'[specify input file]:file containing URLs:_files' \ + '(--force-html -F)'{--force-html,-F}'[treat input file as html]' \ + '(--base -B)'{--base=,-B+}'[prepend URL to relative links]:base URL:_urls' \ '--bind-address=:address to bind to (hostname or IP):_hosts' \ - {'(--tries)-t+[tries]','(-t)--tries='}':number of retries:(0)' \ - {'(--output-document)-O+[output document]','(-O)--output-document='}':output file:_files' \ - '(--continue)-c[continue]' '(-c)--continue' \ - '--dot-style=:display style:(default binary mega giga micro)' \ - '(--timestamping)-N[timestamping]' '(-N)--timestamping' \ - '(--server-response)-S[server response]' '(-S)--server-response' \ - '--spider' \ - {'(--timeout)-T+[timeout]','(-T)--timeout='}':read timeout(seconds):' \ - {'(--wait)-w+[wait]','(-w)--wait='}':wait between retrievals(seconds):' \ - '--waitretry=:seconds to wait between retries of a retrieval:' \ - {'(--proxy --use-proxy)-Y+[proxy]','(-Y --use-proxy)--proxy=','(-Y --proxy)--use-proxy='}':proxy:(on off)' \ - {'(--quota)-Q+[quota]','(-Q)--quota='}':number:' \ - '(--force-directories)-x[force directories]' '(-x)--force-directories' \ - {'(--directory-prefix)-P+[directory prefix]','(-P)--directory-prefix='}':prefix:_files -/' \ + '(--tries -t)'{--tries=,-t+}'[set number of retries]:number of retries' \ + '(--output-document -O)'{--output-document=,-O+}'[specify file to write documents to]:output file:_files' \ + '(--continue -c)'{--continue,-c}'[continue getting an existing file]' \ + '--dot-style=[set retrieval display style]:display style:(default binary mega giga micro)' \ + '(--timestamping -N)'{--timestamping,-N}'[retrieve only files newer than existing]' \ + '(--server-response -S)'{--server-response,-S}'[print server response]' \ + "--spider[don't download anything]" \ + '(--timeout -T)'{--timeout=,-T+}'[specify read timeout]:read timeout (seconds)' \ + '(--wait,-w)'{--wait=,-w+}'[specify wait between retrievals]:wait between retrievals (seconds)' \ + '--waitretry=:wait between retries of a retrieval (seconds)' \ + '(--proxy -Y)'{--proxy=,-Y+}'[turn proxy on or off]:proxy use:(on off)' \ + '(--quota -Q)'{--quota=,-Q+}'[set retrieval quota]:number' \ + '(--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:' \ '--http-user=:user:' \ '--http-passwd=:password:' \ - '(--html-extension)-E[save all text/html files with a .html extension]' \ - '(-E)--html-extension' \ - '--ignore-length' \ + '(--html-extension -E)'{--html-extension,-E}'[save all text/html files with a .html extension]' \ + "--ignore-length[ignore \`Content-Length' header field]" \ '--header=:string:' \ '--proxy-user=:user:' \ '--proxy-passwd=:password:' \ '--referer=:url:_urls' \ - '(--save-headers)-s[save headers]' '(-s)--save-headers' \ - {'(--user-agent)-U+[user agent]','(-U)--user-agent='}':user-agent:' \ + '(--save-headers -s)'{--save-headers,-s}'[save http headers]' \ + '(--user-agent -U)'{--user-agent=,-U+}'[specify user agent to identify as]:user-agent' \ '--retr-symlinks' \ - {'(--glob)-g+[glob]','(-g)--glob='}':glob:(on off)' \ + '(--glob -g)'{--glob=,-g+}'[turn file globbing on or off]:glob:(on off)' \ '--passive-ftp' \ - '(--recursive)-r[recursive]' '(-r)--recursive' \ - {'(--level)-l+[level]','(-l)--level='}':level:(0)' \ + '(--recursive -r)'{--recursive,-r}'[recurse subdirectories]' \ + '(--level -l)'{--level=,-l+}'[specify maximum recursion depth]:level' \ '--delete-after' \ - '(--convert-links)-k[convert links]' '(-k)--convert-links' \ - '(--backup-converted)-K[backup files before conversion]' \ - '(-K)--backup-converted' \ - '(--mirror)-m[mirror]' '(-m)--mirror' \ - '(--page-requisites)-p[get all images needed to display page]' \ - '(-p)--page-requisites' \ - {'(--accept)-A+[accept]','(-A)--accept='}':accepted extensions:' \ - {'(--reject)-R+[reject]','(-R)--reject='}':rejected extensions:' \ - {'(--domains)-D+[domains]','(-D)--domains='}':accepted domains:' \ + '(--convert-links -k)'{--convert-links,-k}'[convert links to be relative]' \ + '(--backup-converted -K)'{--backup-converted,-K}'[backup files before conversion]' \ + '(--mirror -m -r -N -l)'{--mirror,-m}'[mirror (-r -N -l inf -nr)]' \ + '(--page-requisites -p)'{--page-requisites,-p}'[get all images needed to display page]' \ + '(--accept -A)'{--accept=,-A+}'[specify accepted extensions]:extensions' \ + '(--reject -R)'{--reject=,-R+}'[specify rejected extensions]:extensions' \ + '(--domains -D)'{--domains=,-D+}'[specify accepted domains]:domains' \ '--exclude-domains=:rejected domains:' \ '--follow-ftp' \ '--follow-tags=:HTML tags:' \ - {'(--ignore-tags)-G+[ignored HTML tags]','(-G)--ignore-tags='}':HTML tags:' \ - '(--span-hosts)-H[span hosts]' '(-H)--span-hosts' \ - '(--relative)-L[follow relative links only]' '(-L)--relative' \ - {'(--include-directories)-I+[include directories]','(-I)--include-directories='}':allowed directories:' \ - {'(--exclude-directories)-X+[exclude directories]','(-X)--exclude-directories='}':excluded directories:' \ + '(--ignore-tags -G)'{--ignore-tags=,-G+}'[spcify ignored HTML tags]:HTML tags' \ + '(--span-hosts -H)'{--span-hosts,-H}'[span hosts]' \ + '(--relative -L)'{--relative,-L}'[follow relative links only]' \ + '(--include-directories -I)'{--include-directories=,-I+}'[include directories]:allowed directories' \ + '(--exclude-directories -X)'{--exclude-directories=,-X+}'[exclude directories]:excluded directories' \ '--no-host-lookup' \ '--no-parent' \ '--non-verbose' \ @@ -76,17 +71,11 @@ _arguments -C -s \ '--no-directories' \ '--no-host-directories' \ '--dont-remove-listing' \ - '--cache=:cache:(on off)' \ + '(--cache -C)'{--cache=,-C+}'[(dis)allow server-cached data]:cache:(on off)' \ '--htmlify=:htmlify:' \ '--no:no:->noflags' \ '*:url:_urls' && return 0 -# '--backups:backups:' \ -# '-W' \ -# '(--email-address)-E+[email address]' '(-E)--email-address' \ -# '-C+[cache]:cache:(on off)' \ -# '--force-hier' \ - case "$state" in noflags) _values -s '' 'option' \ |