From: Emil Engler Date: Sat, 30 Jul 2022 19:55:04 +0000 (+0200) Subject: docs: add dns category to --resolve X-Git-Tag: curl-7_85_0~108 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ce8031d369cc05288a663cddd904a9147a898959;p=thirdparty%2Fcurl.git docs: add dns category to --resolve This commit adds the dns category to the --resolve command line option, because it can be interpreted as both: a low-level connection option and an option related to the resolving of a hostname. It is also not common for dns options to belong to the connection category and vice versa. --ipv4 and --ipv6 are both good examples. Closes #9229 --- diff --git a/docs/cmdline-opts/resolve.d b/docs/cmdline-opts/resolve.d index 3507b7ea9d..eecaa78a54 100644 --- a/docs/cmdline-opts/resolve.d +++ b/docs/cmdline-opts/resolve.d @@ -4,7 +4,7 @@ Long: resolve Arg: <[+]host:port:addr[,addr]...> Help: Resolve the host+port to this address Added: 7.21.3 -Category: connection +Category: connection dns Example: --resolve example.com:443:127.0.0.1 $URL See-also: connect-to alt-svc --- diff --git a/src/tool_listhelp.c b/src/tool_listhelp.c index 266f9b0bd7..5b2df5645e 100644 --- a/src/tool_listhelp.c +++ b/src/tool_listhelp.c @@ -593,7 +593,7 @@ const struct helptxt helptext[] = { CURLHELP_HTTP}, {" --resolve <[+]host:port:addr[,addr]...>", "Resolve the host+port to this address", - CURLHELP_CONNECTION}, + CURLHELP_CONNECTION | CURLHELP_DNS}, {" --retry ", "Retry request if transient problems occur", CURLHELP_CURL},