Skip to content

curl: help category cleanups - #22447

Closed
bagder wants to merge 1 commit into
masterfrom
bagder/help-cats
Closed

curl: help category cleanups#22447
bagder wants to merge 1 commit into
masterfrom
bagder/help-cats

Conversation

@bagder

@bagder bagder commented Jul 30, 2026

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

@github-actions github-actions Bot added the tests label Jul 30, 2026
@bagder
bagder marked this pull request as ready for review July 30, 2026 12:08
@bagder
bagder requested a review from Copilot July 30, 2026 12:08

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds an MQTT help category and updates option categorization/wording so curl --help and option documentation better reflect protocol applicability (including MQTT).

Changes:

  • Introduce a new mqtt help category and include it in help output/tests.
  • Expand several option category bitmasks and cmdline-opts Category: fields to include additional protocol categories.
  • Reword --data documentation/help to be less HTTP-specific and mention MQTT PUBLISH behavior.

Reviewed changes

Copilot reviewed 26 out of 26 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
tests/data/test1462 Updates expected category list to include mqtt.
tests/data/data1461.txt Updates expected --help output (including categories list and --data short text).
src/tool_listhelp.c Adjusts per-option help categories; updates --data short description and adds MQTT category bit.
src/tool_help.h Adds CURLHELP_MQTT category bit constant.
src/tool_help.c Registers the new mqtt category descriptor for --help category.
scripts/managen Tweaks wrapping logic for generated category bitmask lines.
docs/cmdline-opts/upload-flags.md Adds more categories to align option classification with IMAP/upload usage.
docs/cmdline-opts/upload-file.md Adds IMAP category to reflect use with IMAP uploads.
docs/cmdline-opts/unix-socket.md Adds HTTP category to match protocol applicability.
docs/cmdline-opts/ssl.md Adds FTP category to match supported protocols.
docs/cmdline-opts/ssl-reqd.md Adds FTP category to match supported protocols.
docs/cmdline-opts/show-headers.md Adds HTTP/FTP categories to match supported protocols.
docs/cmdline-opts/sasl-ir.md Adds protocol categories (IMAP/POP3/LDAP/SMTP) for SASL usage.
docs/cmdline-opts/sasl-authzid.md Adds protocol categories (LDAP/IMAP/POP3/SMTP) for SASL usage.
docs/cmdline-opts/remote-header-name.md Adds HTTP category to match protocol applicability.
docs/cmdline-opts/proxy-header.md Adds HTTP category to match protocol applicability.
docs/cmdline-opts/pass.md Expands protocol categories for TLS/SCP/SFTP/SSH usage.
docs/cmdline-opts/oauth2-bearer.md Adds HTTP category to match supported protocols.
docs/cmdline-opts/max-filesize.md Adds FTP/HTTP/MQTT categories to match supported protocols.
docs/cmdline-opts/knownhosts.md Expands categories for SCP/SFTP/SSH usage.
docs/cmdline-opts/key.md Expands categories for TLS/SCP/SFTP/SSH usage.
docs/cmdline-opts/form-escape.md Adds IMAP/SMTP categories to match supported protocols.
docs/cmdline-opts/data.md Rewords --data docs to cover MQTT and updates categorization.
docs/cmdline-opts/compressed-ssh.md Adds SFTP category to match supported protocols.
docs/cmdline-opts/basic.md Adds HTTP category to match supported protocols.
docs/cmdline-opts/abstract-unix-socket.md Adds HTTP category to match protocol applicability.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/tool_listhelp.c
Comment thread tests/data/data1461.txt
Comment thread docs/cmdline-opts/data.md
Comment thread docs/cmdline-opts/data.md Outdated
- add 'mqtt' as a category
- add more protocol categories to several options
- make --data worded better to also cover MQTT

Closes #22447
@bagder
bagder force-pushed the bagder/help-cats branch from 2dd0601 to 0c87c41 Compare July 30, 2026 12:24
@bagder bagder closed this in 5eb2f07 Jul 30, 2026
@bagder
bagder deleted the bagder/help-cats branch July 30, 2026 14:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

2 participants