summaryrefslogtreecommitdiff
path: root/Completion/Unix/Command/_wget
diff options
context:
space:
mode:
authorAxel Beckert <abe@deuxchevaux.org>2015-08-22 01:55:58 +0200
committerAxel Beckert <abe@deuxchevaux.org>2015-08-22 01:55:58 +0200
commit02f6e25bfcd5feb9a093377dda0dd549cdf5c309 (patch)
tree9a25e61122b3fa0d0a1ff68b5ef05c775ff78b1e /Completion/Unix/Command/_wget
parente04a19735ffc8523b93b33074f685ad4e2c92e0c (diff)
parent881474edcb223ac22a08d81a824809c33ca3a9c9 (diff)
downloadzsh-02f6e25bfcd5feb9a093377dda0dd549cdf5c309.tar.gz
zsh-02f6e25bfcd5feb9a093377dda0dd549cdf5c309.zip
Merge tag 'zsh-5.0.8-test-2' into debian
Diffstat (limited to 'Completion/Unix/Command/_wget')
-rw-r--r--Completion/Unix/Command/_wget41
1 files changed, 40 insertions, 1 deletions
diff --git a/Completion/Unix/Command/_wget b/Completion/Unix/Command/_wget
index b8ca2fd93..b6feab581 100644
--- a/Completion/Unix/Command/_wget
+++ b/Completion/Unix/Command/_wget
@@ -63,7 +63,7 @@ _arguments -C -s \
'--default-page=[specify default page name, normally index.html]' \
'(--adjust-extension -E)'{--adjust-extension,-E}'[save all HTML/CSS documents with proper extensions]' \
"--ignore-length[ignore \`Content-Length' header field]" \
- '*--header=:string' \
+ '*--header=[send a custom HTTP header]:header:->header' \
'--max-redirect=:number' \
'--proxy-user=:user' \
'--proxy-password=:password' \
@@ -132,6 +132,7 @@ _arguments -C -s \
'--no-clobber' \
'--no-directories' \
'--no-host-directories' \
+ '--no-use-server-timestamps[do not set timestamp to server provided value]' \
'--htmlify=:htmlify:' \
'--no:no:->noflags' \
'*:URL:_urls' && return 0
@@ -156,4 +157,42 @@ case "$state" in
'(unix)windows' \
'(unix windows)nocontrol'
;;
+ header)
+ local -a headers
+ headers=(
+ Accept{,-{Charset,Encoding,Language,Datetime}}
+ Authorization
+ Cache-Control
+ Connection
+ Cookie
+ Content-{Length,MD5,Type}
+ Date
+ Expect
+ From
+ Host
+ If-Match
+ If-Modified-Since
+ If-None-Match
+ If-Range
+ If-Unmodified-Since
+ Max-Forwards
+ Pragma
+ Proxy-Authorization
+ Range
+ Referer
+ TE
+ Upgrade
+ User-Agent
+ Via
+ Warning
+ X-Requested-With
+ X-Do-Not-Track
+ DNT
+ X-Forwarded-For
+ X-ATT-DeviceId
+ X-Wap-Profile
+ )
+ headers=($^headers\\:\ )
+ _describe -t header 'HTTP header' headers
+ ;;
esac