From b4dc529fc43bf3b2a21e54f10c5db46b8120df0d Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 31 Mar 2025 13:17:22 +0200 Subject: [PATCH] prox/preproxy.md: document argument within ... as the argument is mandatory and we use that symbol for all other options. Closes #16883 --- docs/cmdline-opts/preproxy.md | 2 +- docs/cmdline-opts/proxy.md | 2 +- src/tool_listhelp.c | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) 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", -- 2.47.3