Skip to content

[cli-consistency] CLI Consistency Issues - 2026-11-13 #77456

Done

Description

@github-actions

Summary

Inspected 94 unique gh aw command flag blocks from /tmp/gh-aw/agent/all-help.txt and compared them with docs/src/content/docs/setup/cli.md.

Severity breakdown: high 0, medium 0, low 1.

Findings

Documentation and examples

1. [low] Help examples use the hidden --pr alias

Affected commands: add, add-wizard, deploy, init, pr transfer, update, upgrade.

Exact quotes from help output:

  gh aw add githubnext/agentics/ci-doctor --pr --auto-merge  # Open a pull request and enable auto-merge
  gh aw init --pr --auto-merge              # Initialize and enable pull request auto-merge
  gh aw update --pr --auto-merge       # Open a pull request and enable auto-merge

The same commands show the canonical flag in their flag lists, while --pr is missing from those lists:

      --auto-merge[=true|false]            Enable auto-merge on the created pull request (requires --pr or --create-pull-request)
  • Expected: examples use the visible flag --create-pull-request, and the --auto-merge description refers only to --create-pull-request.
  • Actual: examples and the --auto-merge description use --pr, which is registered with MarkHidden and does not appear in the flag lists.
  • Source: pkg/cli/add_command.go:242-244 (cmd.Flags().Bool("pr", ...), then _ = cmd.Flags().MarkHidden("pr")). Similar registrations exist in add_wizard_command.go, deploy_command.go, init_command.go, and upgrade_command.go.
  • Doc status: cli.md documents --pr in the **Options:** lines for these commands. Users who read the help never see it listed.
  • Suggested fix: change the examples and the --auto-merge description to --create-pull-request. Keep --pr as a hidden alias for backward compatibility. Optionally add a note in cli.md that --pr is a hidden alias.
  • Priority: low.

Checked and not reported

  • --timeout types (duration vs integer minutes) match the doc's timeout table.
  • -n, --name is used on add and deploy, but not on work-queue control, where --name has a different meaning (Closed operational control name).
  • --repo/-r and --logical-repo/-l are consistent with the trial note in the doc.
  • No doubled words or spacing errors were found in help descriptions.
Inspection metadata
  • Date: 2026-11-13
  • Input: /tmp/gh-aw/agent/all-help.txt (help output for 94 unique command flag blocks). Per-subcommand files in help-output/ were byte-identical root help, so they were not used.
  • Method: parsed flag definitions per command, compared short aliases, types, and examples against cli.md **Options:** lines and the timeout table, grepped for doubled words and common misspellings, and checked hidden flags in pkg/cli/*.go.
  • Limitations: the binary was not run directly. Findings are based on the captured help dataset and source.

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

  • expires on Nov 15, 2026, 5:32 AM UTC-08:00

Activity

  1. added
    documentation
    cookie
    on Nov 13, 2026
  2. github-actions commented on Nov 13, 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 · ~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