curl: Add bunch of new option argument completions.
This commit is contained in:
parent
f8b28a5827
commit
da4956af1f
@ -6,18 +6,20 @@ _curl()
|
|||||||
_init_completion || return
|
_init_completion || return
|
||||||
|
|
||||||
case $prev in
|
case $prev in
|
||||||
--ciphers|--connect-timeout|-C|--continue-at|--form|--form-string|\
|
--ciphers|--connect-timeout|-C|--continue-at|-F|--form|--form-string|\
|
||||||
--ftp-account|--ftp-alternative-to-user|-P|--ftp-port|-H|--header|-h|\
|
--ftp-account|--ftp-alternative-to-user|-P|--ftp-port|-H|--header|-h|\
|
||||||
--help|--hostpubmd5|--keepalive-time|--krb|--limit-rate|--local-port|\
|
--help|--hostpubmd5|--keepalive-time|--krb|--limit-rate|--local-port|\
|
||||||
--mail-from|--mail-rcpt|--max-filesize|--max-redirs|-m|--max-time|\
|
--mail-from|--mail-rcpt|--max-filesize|--max-redirs|-m|--max-time|\
|
||||||
--pass|--proto|--proto-redir|--proxy-user|--proxy1.0|-Q|--quote|-r|\
|
--pass|--proto|--proto-redir|--proxy-user|--proxy1.0|-Q|--quote|-r|\
|
||||||
--range|-X|--request|--retry|--retry-delay|--retry-max-time|\
|
--range|-X|--request|--retry|--retry-delay|--retry-max-time|\
|
||||||
--socks5-gssapi-service|-t|--telnet-option|--tftp-blksize|-z|\
|
--socks5-gssapi-service|-t|--telnet-option|--tftp-blksize|-z|\
|
||||||
--time-cond|--url|-u|--user|-A|--user-agent|-V|--version|-w|--write-out)
|
--time-cond|--url|-u|--user|-A|--user-agent|-V|--version|-w|\
|
||||||
|
--write-out|--resolve|--tlsuser|--tlspassword)
|
||||||
return
|
return
|
||||||
;;
|
;;
|
||||||
-K|--config|-b|--cookie|-c|--cookie-jar|-D|--dump-header|--egd-file|\
|
-K|--config|-b|--cookie|-c|--cookie-jar|-D|--dump-header|--egd-file|\
|
||||||
--key|--libcurl|-o|--output|--random-file|-T|--upload-file)
|
--key|--libcurl|-o|--output|--random-file|-T|--upload-file|--trace|\
|
||||||
|
--trace-ascii|--netrc-file)
|
||||||
_filedir
|
_filedir
|
||||||
return
|
return
|
||||||
;;
|
;;
|
||||||
@ -45,6 +47,10 @@ _curl()
|
|||||||
fi
|
fi
|
||||||
return
|
return
|
||||||
;;
|
;;
|
||||||
|
--delegation)
|
||||||
|
COMPREPLY=( $( compgen -W 'none policy always' -- "$cur" ) )
|
||||||
|
return
|
||||||
|
;;
|
||||||
--engine)
|
--engine)
|
||||||
COMPREPLY=( $( compgen -W 'list' -- "$cur" ) )
|
COMPREPLY=( $( compgen -W 'list' -- "$cur" ) )
|
||||||
return
|
return
|
||||||
@ -74,6 +80,10 @@ _curl()
|
|||||||
_filedir
|
_filedir
|
||||||
return
|
return
|
||||||
;;
|
;;
|
||||||
|
--tlsauthtype)
|
||||||
|
COMPREPLY=( $( compgen -W 'SRP' -- "$cur" ) )
|
||||||
|
return
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
if [[ $cur == -* ]]; then
|
if [[ $cur == -* ]]; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user