Skip to content

CLI: add per-command --help text for all 30 commands #173

@windoliver

Description

@windoliver

Context

The dispatch infrastructure for per-command --help was added in commit 20ab9f8 (the helpText field on the Command type, checked in main.ts before dispatch). But the actual help text content for each of the 30 commands hasn't been written yet.

Currently grove contribute --help prints a generic fallback: grove contribute — Submit a contribution. Run 'grove --help' for full usage.

What needs to happen

Add a helpText string to each command in buildCommands() (src/cli/main.ts) with:

  • Usage line with flags
  • Flag descriptions
  • 1-2 examples

Use existing registry.ts CommandMeta (flags, subcommands) as the source of truth.

Files

  • src/cli/main.ts — add helpText to each command entry
  • src/cli/registry.ts — reference for flags/subcommands

Tests

  • Spot-check 5 commands: grove contribute --help, grove frontier --help, grove gossip --help, grove bounty --help, grove session --help

From design review plan: /Users/tafeng/.claude/plans/cryptic-percolating-boole.md

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions