Skip to content

[cli-consistency] CLI Consistency Issues - 2026-11-11 #76872

Done

Description

@github-actions

Summary

Inspected the gh aw CLI help output and docs/src/content/docs/setup/cli.md. Found 4 consistency issues: 0 high, 1 medium, 3 low.

Severity Count
High 0
Medium 1
Low 3

Findings

Flag short-alias inconsistency (medium)

Command: gh aw logs episode

Actual (./gh-aw logs episode --help):

      --json                   Output the standard logs report with retrieval bounds and gaps as JSON

Expected: -j, --json, matching every other --json flag in the CLI (for example -j, --json Output results in JSON format).

Source: pkg/cli/logs_episode_retrieval_command.go:94 defines the flag with BoolVar(jsonOutput, "json", ...) and no shorthand.

Suggested fix: add the j shorthand to that flag definition.

Duplicated default annotation (low)

Command: gh aw logs

Actual (./gh-aw logs --help):

      --max-storage int                 Maximum logs storage in MB after pruning non-essential cache data (default: 1 GB; 0 = unlimited) (default 1024)

Expected: a single default annotation.

Source: pkg/cli/logs_command.go:710 puts (default: 1 GB; 0 = unlimited) in the description, and cobra appends (default 1024) on its own.

Suggested fix: remove the (default: 1 GB; ...) default text from the description and keep the 0 = unlimited note.

Undocumented --repo semantics and missing short alias (low)

Command: gh aw connector <id> setup

Actual (connector --help):

      --repo string   Check missing setup secret/variable names in OWNER/REPO (read-only; setup only; omit for offline guidance)

Expected: Every other command uses --repo/-r to select a target repository. This one has no -r and does something different: it checks setup secrets.

Source: pkg/cli/connector_development_command.go:99.

Docs: cli.md (~lines 1413–1415) shows --repo owner/repo in examples without explaining that it is a read-only check.

Suggested fix: either document that this --repo is a check-only flag, or rename it to a name that reflects its behavior. Consider whether -r should be added for consistency.

Error prefix says gh instead of gh aw (low)

Command: any unknown subcommand

Actual:

✗ unknown command "nosuchcmd" for "gh"

Expected: for "gh aw", matching the gh aw prefix used in the rest of the help and usage text.

Source: cmd/gh-aw/main.go:637–639 normalizes gh aw for display, but cobra's built-in unknown-command message uses the root command path.

Suggested fix: override the root command's unknown-command message so it uses the gh aw prefix.

Verified as consistent (no action)

  • --version and version print the same output.
  • compile --watch / -w pairing is correct.
  • --timeout uses int minutes for logs, forecast, and trial, and duration for audit, health, logs episode, and connector. This split is documented in cli.md ("Timeout flag formats").
  • --artifacts defaults to all on audit and usage on logs. This is intentional per the source.
  • Hidden aliases --pr, --read-only, and --after are intentional and documented.
  • --dir description wording is uniform across commands.

Inspection metadata

  • Date: 2026-11-11
  • Method: parsed all-help.txt (436 usage blocks, 505 unique flag lines) and help-output/, diffed flags against cli.md, checked examples, and ran the live ./gh-aw binary (existing build at the repo root) to confirm each finding.
  • Limits: the binary could not be rebuilt because the Go toolchain download failed in this sandbox. The checks used the existing binary, version 7cf8df4-dirty.

Generated by ✅ CLI Consistency Checker · copilot · routed: haiku55 xhigh · ~15 AIC · ⌖ ~1 AIC · ⊞ 3.4K · ◷

  • expires on Nov 13, 2026, 5:31 AM UTC-08:00

Activity

  1. added
    documentation
    cookie
    on Nov 11, 2026
  2. github-actions commented on Nov 11, 2026

    @github-actions
    ContributorAuthor

    🍪 Issue Monster selected this for Copilot

    I've identified this issue as a good candidate for automated resolution and requested assignment to the Copilot coding agent.

    If assignment succeeds, Copilot will analyze the issue and create a pull request with the fix.

    Om nom nom! 🍪

    🍪 Om nom nom by Issue Monster · pi · gpt50 · ~1 AIC · ⌖ ~1 AIC · ⊞ 11.7K · ◷

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

Metadata

Metadata

Labels

automationclicookiedocumentation

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions