mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-18 15:21:16 +02:00
30 lines
1.4 KiB
Text
30 lines
1.4 KiB
Text
#compdef fetch
|
|
# Deprecated arguments are removed from the completion
|
|
|
|
_arguments -s \
|
|
'-1[stop and return exit code 0 at the first successfully retrieved file]' \
|
|
'-4[forces fetch to use IPv4 addresses only]' \
|
|
'-6[forces fetch to use IPv6 addresses only]' \
|
|
'-A[do not automatically follow "temporary" (302) redirects]' \
|
|
'-a[automatically retry the transfer upon soft failures]' \
|
|
'-B[specify the read buffer size in bytes]:bytes:' \
|
|
'-d[use a direct connection even if a proxy is configured]' \
|
|
'-F[in combination with the -r flag, forces a restart]' \
|
|
'-l[if the target is a file-scheme URL, make a symbolic link to the target]' \
|
|
'-M' \
|
|
'-m[mirror mode]' \
|
|
'-N[use file instead of ~/.netrc to look up login names and pass- words for FTP sites]' \
|
|
'-n[do not preserve the modification time]' \
|
|
'-o[set the output file name]:file:_files' \
|
|
'-P' \
|
|
'-p[use passive FTP]' \
|
|
'-q[quiet mode]' \
|
|
'-R[do not delete the output file in any circumstances]' \
|
|
'-r[restart a previously interrupted transfer]' \
|
|
'-S[require the file size reported by the server to match the specified value]' \
|
|
'-s[print the size in bytes, without fetching it]' \
|
|
'-T[set timeout value]:seconds:' \
|
|
'-U[when using passive FTP, allocate the port for the data connection from the low port range]' \
|
|
'-v[increase verbosity level]' \
|
|
'-w[wait successive retries]:seconds:' \
|
|
'*:URL to fetch:_urls'
|