File tree Expand file tree Collapse file tree 1 file changed +19
-3
lines changed Expand file tree Collapse file tree 1 file changed +19
-3
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ package args
33import "sort"
44
55var (
6- curlShortValues = "EKCbcdDFPHhmoUQreXYytzTuAw "
6+ curlShortValues = "EKCbcdDFPHhmoxUQreXYytzTuAw "
77 curlLongValues = []string {
88 "abstract-unix-socket" ,
99 "alt-svc" ,
3434 "dns-servers" ,
3535 "doh-url" ,
3636 "dump-header" ,
37+ "ech" ,
3738 "egd-file" ,
3839 "engine" ,
3940 "etag-compare" ,
@@ -47,13 +48,17 @@ var (
4748 "ftp-port" ,
4849 "ftp-ssl-ccc-mode" ,
4950 "happy-eyeballs-timeout-ms" ,
51+ "haproxy-clientip" ,
5052 "header" ,
5153 "help" ,
5254 "hostpubmd5" ,
5355 "hostpubsha256" ,
5456 "hsts" ,
5557 "interface" ,
58+ "ip-tos" ,
59+ "ipfs-gateway" ,
5660 "json" ,
61+ "keepalive-cnt" ,
5762 "keepalive-time" ,
5863 "key" ,
5964 "key-type" ,
7681 "parallel-max" ,
7782 "pass" ,
7883 "pinnedpubkey" ,
84+ "preproxy" ,
7985 "proto" ,
8086 "proto-default" ,
8187 "proto-redir" ,
@@ -112,13 +118,15 @@ var (
112118 "retry-max-time" ,
113119 "sasl-authzid" ,
114120 "service-name" ,
121+ "sigalgs" ,
115122 "socks4" ,
116123 "socks4a" ,
117124 "socks5" ,
118125 "socks5-gssapi-service" ,
119126 "socks5-hostname" ,
120127 "speed-limit" ,
121128 "speed-time" ,
129+ "ssl-sessions" ,
122130 "stderr" ,
123131 "telnet-option" ,
124132 "tftp-blksize" ,
@@ -130,16 +138,24 @@ var (
130138 "tlsuser" ,
131139 "trace" ,
132140 "trace-ascii" ,
141+ "trace-config" ,
133142 "unix-socket" ,
134143 "upload-file" ,
144+ "upload-flags" ,
135145 "url" ,
136146 "url-query" ,
137147 "user" ,
138148 "user-agent" ,
139- "write-out" ,
140- }
149+ "variable" ,
150+ "vlan-priority" ,
151+ "write-out" }
141152)
142153
143154func init () {
155+ // add --expand-* variants for all value-taking options.
156+ for i , n := 0 , len (curlLongValues ); i < n ; i ++ {
157+ curlLongValues = append (curlLongValues , "expand-" + curlLongValues [i ])
158+ }
159+
144160 sort .Strings (curlLongValues )
145161}
You can’t perform that action at this time.
0 commit comments