Skip to content

feat(cli): improve help discoverability for subcommands#1

Merged
dubscode merged 1 commit intomainfrom
codex/help-discoverability-agent-friendly
Mar 20, 2026
Merged

feat(cli): improve help discoverability for subcommands#1
dubscode merged 1 commit intomainfrom
codex/help-discoverability-agent-friendly

Conversation

@dubscode
Copy link
Contributor

@dubscode dubscode commented Mar 20, 2026

Summary

  • show inherited global flags in nested command help (Global Options) so --json is visible on subcommand help pages
  • add targeted help examples for linear issues and linear issues branch
  • add explicit branch JSON extraction hint (.data.branchName) to branch help
  • refresh root help examples and README command-discovery/run syntax guidance

Validation

  • pnpm verify
  • pnpm --filter @wiseiodev/linear-cli test

Show inherited global flags in nested help output via Commander configuration.

Add targeted issues/branch examples including JSON extraction path guidance.

Update README command syntax and help-discovery examples.
Copilot AI review requested due to automatic review settings March 20, 2026 02:15
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Improves CLI help discoverability by making global flags visible on nested subcommand help and by adding more targeted, task-oriented help examples (including JSON extraction hints) across the CLI and README.

Changes:

  • Enable inherited global options display in subcommand help (showGlobalOptions: true).
  • Add command-specific “Examples” help text for issues and issues branch, including a JSON path hint for branch name extraction.
  • Update help-related tests and refresh README command-discovery / run-syntax guidance.

Reviewed changes

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

File Description
packages/cli/src/index.ts Enables global options in subcommand help and attaches new help text to issues / issues branch.
packages/cli/src/help/root-help.ts Expands root help examples and adds new issues / issues branch help text blocks (with .data.branchName hint).
packages/cli/tests/help.test.ts Adds assertions verifying rendered nested help includes global options and the branch JSON path hint.
README.md Refreshes CLI run/help discovery examples and updates branch examples to include --json + JSON path note.

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

@dubscode dubscode merged commit 702ebce into main Mar 20, 2026
6 checks passed
@dubscode dubscode deleted the codex/help-discoverability-agent-friendly branch March 20, 2026 02:36
github-actions bot pushed a commit that referenced this pull request Mar 20, 2026
# [1.5.0-alpha.1](v1.4.0...v1.5.0-alpha.1) (2026-03-20)

### Features

* **cli:** improve help discoverability for subcommands ([#1](#1)) ([702ebce](702ebce))
@github-actions
Copy link

🎉 This PR is included in version 1.5.0-alpha.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants