Skip to content

[cli-consistency] CLI Consistency Issues - 2026-11-20 #79524

Done

Description

@github-actions

Summary

Inspected the pre-collected gh aw help output (46 top-level commands and about 390 per-command help files) against docs/src/content/docs/setup/cli.md. Found 1 finding: severity breakdown is high: 0, medium: 0, low: 1. Typos, doubled words, GitHub/JSON casing, short-flag collisions, and doc **Options:** lists all matched the help output.

Findings

1. --timeout means different units on different commands (low)

Affected commands: logs, forecast, trial (integer minutes); audit, health, value, connector test, logs episode (Go duration).

Exact CLI output:

  • logs: --timeout int Total download timeout in minutes across all targets (0 = no timeout)
  • forecast: --timeout int Gracefully stop forecast computation after this many minutes (0 = no timeout)
  • trial: --timeout int Execution timeout in minutes (0 = no timeout) (default 30)
  • logs episode: --timeout duration Wall-clock retrieval deadline (default 5m0s)
  • audit: --timeout duration Maximum audit duration (e.g., 50s or 5m; 0 means no additional deadline)...
  • health: --timeout duration Maximum collection duration (e.g., 30s or 5m; 0 disables the deadline)...

Expected: One flag name should use one unit convention, or the help text should make the unit obvious.

Actual: The same flag takes integer minutes on some commands and a Go duration on others. For example, gh aw logs --timeout 5m is rejected because the value must be an integer, while gh aw logs episode --timeout 5m works. The docs explain the split (cli.md lines 31–41 and 585), but the help text for logs, forecast, and trial does not show the unit in the flag type.

Suggested fix: Either (a) add a duration-typed alias such as --timeout-minutes for the integer commands and deprecate the integer --timeout over time, or (b) accept both forms on the integer commands (for example, a value with an m or s suffix). At minimum, change the help text for the integer-minute commands to state the unit explicitly (e.g., "minutes, integer; use a plain number such as 10").

Priority: Low. The behavior is documented, so this is a usability trap rather than a bug.

Checked and not flagged

  • Short-letter collisions: none. -n is declared on several commands, but work-queue-control --name is a different flag in a different context.
  • Doc **Options:** lists match help output. The only extra flags are subcommand-specific (sessions download, graders run), which the parent section documents intentionally.
  • lint --javascript-module is correctly listed in the lint section (cli.md line 554) and registered in pkg/cli/lint_javascript.go.
  • --dir default $GH_AW_WORKFLOWS_DIR or .github/workflows is honored in pkg/constants/constants.go.
  • Top-level summaries match per-command summaries, with only intentional expansions.

Inspection metadata

  • Date: 2026-11-20
  • Method: Parsed /tmp/gh-aw/agent/help-output/*.txt and /tmp/gh-aw/agent/all-help.txt. Cross-checked flags against docs/src/content/docs/setup/cli.md and the Go flag registrations under pkg/cli. Fragment files produced by splitting help text were excluded from analysis.
  • Limits: Help-example flag validation was a heuristic. External-tool flags (jq, zizmor, poutine, gh auth login) were excluded from the doc-vs-help comparison.

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

  • expires on Nov 22, 2026, 5:33 AM UTC-08:00

Activity

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

    @github-actions
    ContributorAuthor

    🍪 Issue Monster selected this for Copilot

    I have 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 · ~2 AIC · ⌖ ~2 AIC · ⊞ 11.3K · ◷

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