]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
prox/preproxy.md: document argument within <brackets>
authorDaniel Stenberg <daniel@haxx.se>
Mon, 31 Mar 2025 11:17:22 +0000 (13:17 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 31 Mar 2025 11:42:29 +0000 (13:42 +0200)
... as the argument is mandatory and we use that symbol for all other
options.

Closes #16883

docs/cmdline-opts/preproxy.md
docs/cmdline-opts/proxy.md
src/tool_listhelp.c

index dabccfc5efe07caa777d3ac4771175b434ee6573..87d94a9604fc2b36e0011eb5bcc5312a69f08e46 100644 (file)
@@ -2,7 +2,7 @@
 c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
 SPDX-License-Identifier: curl
 Long: preproxy
-Arg: [protocol://]host[:port]
+Arg: <[protocol://]host[:port]>
 Help: Use this proxy first
 Added: 7.52.0
 Category: proxy
index 596308fe8101630e629819af708bfc0dbab62955..2c2e0700e6ccc2e9a73017ea043b465fdf2751d0 100644 (file)
@@ -3,7 +3,7 @@ c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
 SPDX-License-Identifier: curl
 Long: proxy
 Short: x
-Arg: [protocol://]host[:port]
+Arg: <[protocol://]host[:port]>
 Help: Use this proxy
 Category: proxy
 Added: 4.0
index 6aa6ec42a6188d0db22f5774ed7dd304884bcfb6..b69cd89e191928c3361bd1bad2f20b6d8e205b46 100644 (file)
@@ -475,7 +475,7 @@ const struct helptxt helptext[] = {
   {"    --post303",
    "Do not switch to GET after a 303 redirect",
    CURLHELP_HTTP | CURLHELP_POST},
-  {"    --preproxy [protocol://]host[:port]",
+  {"    --preproxy <[protocol://]host[:port]>",
    "Use this proxy first",
    CURLHELP_PROXY},
   {"-#, --progress-bar",
@@ -490,7 +490,7 @@ const struct helptxt helptext[] = {
   {"    --proto-redir <protocols>",
    "Enable/disable PROTOCOLS on redirect",
    CURLHELP_CONNECTION | CURLHELP_CURL},
-  {"-x, --proxy [protocol://]host[:port]",
+  {"-x, --proxy <[protocol://]host[:port]>",
    "Use this proxy",
    CURLHELP_PROXY},
   {"    --proxy-anyauth",