Standardize CLI flag descriptions across commands#4404
Merged
Conversation
- Standardize --repo flag descriptions: - add: "Source repository containing workflows (owner/repo format)" - logs/run/enable/disable: "Target repository (owner/repo format)" - pr transfer: Already correct "Target repository (owner/repo format). Defaults to current repository" - trial: Kept "Alias for --host-repo" (specific alias) - Standardize --json flag descriptions: - compile/audit/logs/status: "Output results in JSON format" - Keep --engine flag descriptions contextually different: - compile/add/update/run/trial: "Override AI engine (claude, codex, copilot, custom)" - logs: "Filter logs by engine type (claude, codex, copilot)" - Standardize --force flag descriptions: - new/add: "Overwrite existing files without confirmation" - compile: "Force overwrite of existing dependency files (e.g., dependabot.yml)" - update: "Force update even if no changes are detected" - Keep --timeout flag descriptions contextually different: - logs: "Download timeout in seconds (0 = no timeout)" - trial: "Execution timeout in minutes (default: 30)" - Standardize --dir flag descriptions: - compile/update: "Workflow directory (default: .github/workflows)" - add: "Subdirectory under .github/workflows/ (e.g., 'shared' creates .github/workflows/shared/)" - Fix minor inconsistencies: - --auto-merge-prs: Updated trial to "Auto-merge any pull requests created during trial execution" - --no-stop-after/--stop-after: Simplified to "Remove/Override any stop-after field from the workflow" - --use-local-secrets: Already consistent - Update test to match new flag descriptions Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix inconsistent flag descriptions across CLI commands
Standardize CLI flag descriptions across commands
Nov 20, 2025
pelikhan
approved these changes
Nov 20, 2025
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR standardizes CLI flag descriptions across multiple commands to improve user clarity and consistency. The changes address inconsistent wording for the same flags used in different contexts, making it easier for users to understand flag purposes and expected values.
- Standardizes
--repo,--json,--force,--dir,--engine, and--timeoutflag descriptions - Maintains contextual differences where appropriate (e.g., different timeout units for different commands)
- Removes redundant qualifiers like "added" and "updated" from workflow-related flags
Reviewed Changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| cmd/gh-aw/main.go | Updates flag descriptions for --force, --dir, --json, --repo in compile, new, enable, disable, and run commands |
| pkg/cli/add_command.go | Standardizes --repo, --force, --dir, --no-stop-after, and --stop-after descriptions |
| pkg/cli/audit.go | Updates --json flag description to standard format |
| pkg/cli/logs.go | Standardizes --engine, --repo, --json, and --timeout descriptions |
| pkg/cli/logs_test.go | Updates test assertion to match new --engine flag description |
| pkg/cli/status.go | Updates --json flag description to standard format |
| pkg/cli/trial_command.go | Standardizes --timeout and --auto-merge-prs descriptions |
| pkg/cli/update_command.go | Updates --force, --dir, --no-stop-after, and --stop-after descriptions |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Contributor
|
✅ Agentic Changeset Generator completed successfully. |
pelikhan
approved these changes
Nov 20, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Multiple CLI flags had inconsistent descriptions across commands, causing user confusion about flag purposes and behavior.
Changes
Standardized Flags
--repo(7 commands)add: "Source repository containing workflows (owner/repo format)"logs/run/enable/disable: "Target repository (owner/repo format)"pr transfer,trial: Unchanged (already appropriate)--json(4 commands)--force(3 contexts)new/add: "Overwrite existing files without confirmation"compile: "Force overwrite of existing dependency files (e.g., dependabot.yml)"update: "Force update even if no changes are detected"--dir(2 contexts)compile/update: "Workflow directory (default: .github/workflows)"add: "Subdirectory under .github/workflows/ (e.g., 'shared' creates .github/workflows/shared/)"Contextually Different (Preserved)
--enginecompile/add/update/run/trial: "Override AI engine (claude, codex, copilot, custom)"logs: "Filter logs by engine type (claude, codex, copilot)"--timeoutlogs: "Download timeout in seconds (0 = no timeout)"trial: "Execution timeout in minutes (default: 30)"Minor Fixes
--auto-merge-prs,--stop-after,--no-stop-after: Removed redundant "added"/"updated" qualifiersFiles Modified
cmd/gh-aw/main.gopkg/cli/{add_command,audit,logs,trial_command,update_command,status}.gopkg/cli/logs_test.goOriginal prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.