curl: help category cleanups

- add 'mqtt' as a category
- add more protocol categories to several options
- make --data worded better to also cover MQTT

Closes #22447
This commit is contained in:
Daniel Stenberg 2026-07-30 13:47:03 +02:00
parent 1d7b8e6c29
commit 5eb2f0757e
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
26 changed files with 64 additions and 50 deletions

View file

@ -1,5 +1,5 @@
Usage: curl [options...] <url>
-d, --data <data> HTTP POST data
-d, --data <data> Post data
-f, --fail Fail fast with no output on HTTP errors
-I, --head Show document info only
-H, --header <header/@file> Pass custom header(s) to server
@ -17,7 +17,7 @@ Usage: curl [options...] <url>
This is not the full help; this menu is split into categories.
Use "--help category" to get an overview of all categories, which are:
auth, connection, curl, deprecated, dns, file, ftp, global, http, imap, ldap,%SP
output, pop3, post, proxy, scp, sftp, smtp, ssh, telnet, tftp, timeout, tls,%SP
upload, verbose.
mqtt, output, pop3, post, proxy, scp, sftp, smtp, ssh, telnet, tftp, timeout,%SP
tls, upload, verbose.
Use "--help all" to list all options
Use "--help [option]" to view documentation for a given option

View file

@ -39,6 +39,7 @@ Unknown category provided, here is a list of all categories:
http HTTP and HTTPS protocol
imap IMAP protocol
ldap LDAP protocol
mqtt MQTT protocol
output File system output
pop3 POP3 protocol
post HTTP POST specific