docs/cmdline-opts: unify HTTP version style in --help output

$ curl -h all | grep -- --http

Now:

     --http0.9                      Allow HTTP/0.9 responses
 -0, --http1.0                      Use HTTP/1.0
     --http1.1                      Use HTTP/1.1
     --http2                        Use HTTP/2
     --http2-prior-knowledge        Use HTTP/2 without HTTP/1.1 Upgrade
     --http3                        Use HTTP/3
     --http3-only                   Use HTTP/3 only

Before:

     --http0.9                      Allow HTTP 0.9 responses
 -0, --http1.0                      Use HTTP 1.0
     --http1.1                      Use HTTP 1.1
     --http2                        Use HTTP/2
     --http2-prior-knowledge        Use HTTP 2 without HTTP/1.1 Upgrade
     --http3                        Use HTTP v3
     --http3-only                   Use HTTP v3 only

Closes #16542
This commit is contained in:
Daniel Stenberg 2025-03-03 12:13:38 +01:00
parent 48ba23070a
commit aa18891dda
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
7 changed files with 12 additions and 12 deletions

View file

@ -279,25 +279,25 @@ const struct helptxt helptext[] = {
"Enable HSTS with this cache file",
CURLHELP_HTTP},
{" --http0.9",
"Allow HTTP 0.9 responses",
"Allow HTTP/0.9 responses",
CURLHELP_HTTP},
{"-0, --http1.0",
"Use HTTP 1.0",
"Use HTTP/1.0",
CURLHELP_HTTP},
{" --http1.1",
"Use HTTP 1.1",
"Use HTTP/1.1",
CURLHELP_HTTP},
{" --http2",
"Use HTTP/2",
CURLHELP_HTTP},
{" --http2-prior-knowledge",
"Use HTTP 2 without HTTP/1.1 Upgrade",
"Use HTTP/2 without HTTP/1.1 Upgrade",
CURLHELP_HTTP},
{" --http3",
"Use HTTP v3",
"Use HTTP/3",
CURLHELP_HTTP},
{" --http3-only",
"Use HTTP v3 only",
"Use HTTP/3 only",
CURLHELP_HTTP},
{" --ignore-content-length",
"Ignore the size of the remote resource",