Skip to content

Commit

Permalink
docs: add dns category to --resolve
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
emilengler committed Jul 30, 2022
1 parent 3b52a80 commit f03d71a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/cmdline-opts/resolve.d
Expand Up @@ -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
---
Expand Down
2 changes: 1 addition & 1 deletion src/tool_listhelp.c
Expand Up @@ -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 <num>",
"Retry request if transient problems occur",
CURLHELP_CURL},
Expand Down

0 comments on commit f03d71a

Please sign in to comment.