From: Daniel Stenberg Date: Mon, 31 Mar 2025 11:17:22 +0000 (+0200) Subject: prox/preproxy.md: document argument within X-Git-Tag: curl-8_13_0~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b4dc529fc43bf3b2a21e54f10c5db46b8120df0d;p=thirdparty%2Fcurl.git prox/preproxy.md: document argument within ... as the argument is mandatory and we use that symbol for all other options. Closes #16883 --- diff --git a/docs/cmdline-opts/preproxy.md b/docs/cmdline-opts/preproxy.md index dabccfc5ef..87d94a9604 100644 --- a/docs/cmdline-opts/preproxy.md +++ b/docs/cmdline-opts/preproxy.md @@ -2,7 +2,7 @@ c: Copyright (C) Daniel Stenberg, , 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 diff --git a/docs/cmdline-opts/proxy.md b/docs/cmdline-opts/proxy.md index 596308fe81..2c2e0700e6 100644 --- a/docs/cmdline-opts/proxy.md +++ b/docs/cmdline-opts/proxy.md @@ -3,7 +3,7 @@ c: Copyright (C) Daniel Stenberg, , 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 diff --git a/src/tool_listhelp.c b/src/tool_listhelp.c index 6aa6ec42a6..b69cd89e19 100644 --- a/src/tool_listhelp.c +++ b/src/tool_listhelp.c @@ -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 ", "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",