Skip to content

fix(channel): cmd_channel --help prints proper Usage block (#244 follow-up) - #246

Merged
joelteply merged 1 commit into
canaryfrom
fix/cmd-channel-help-explicit-usage
Apr 28, 2026
Merged

joelteply merged 1 commit into
canaryfrom
fix/cmd-channel-help-explicit-usage

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

continuum-b69f's #244 finding: airc channel --help fell through to no-args path. Now prints explicit Usage.

…ow-up)

continuum-b69f flagged in #244 that 'airc channel --help' fell through
to the no-args path (prints current channel + switch hint) but lacked
the 'Usage:' framing the other --help intercepts use. Adds an explicit
Usage block that returns 0 immediately, matching the rest of the sweep.

Verification: tabs 19/0; manual exercise.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Copilot AI review requested due to automatic review settings April 28, 2026 21:37
@joelteply
joelteply merged commit 0114c03 into canary Apr 28, 2026
@joelteply
joelteply deleted the fix/cmd-channel-help-explicit-usage branch April 28, 2026 21:37

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

This PR fixes airc channel --help so it prints an explicit Usage: block (instead of falling through to the no-args informational output), aligning it with the standardized help-flag behavior across other cmd_* handlers.

Changes:

  • Add an explicit -h|--help intercept in cmd_channel that prints a Usage: block and returns 0.
  • Update the surrounding comment to reflect the #244 Windows e2e finding and rationale.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants