Standardize CLI argument syntax for consistency#7296
Merged
Conversation
Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com>
- Updated all command Use: patterns to use consistent, descriptive names - Required arguments use angle brackets: <workflow>, <run-id>, etc. - Optional arguments use square brackets: [workflow], [pattern], etc. - Simplified argument names: "workflow" instead of "workflow-id" - Added comprehensive tests to validate syntax consistency - All tests pass with new argument patterns Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com>
- Updated MCP list test to expect "list [workflow]" - Updated MCP list-tools test to expect "list-tools <server> [workflow]" - Updated PR transfer test to expect "transfer <pr-url>" - All tests now pass with new argument patterns Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com>
pelikhan
approved these changes
Dec 22, 2025
Copilot
AI
changed the title
[WIP] Fix inconsistent argument syntax in CLI commands
Standardize CLI argument syntax for consistency
Dec 22, 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.
The CLI used inconsistent notation for command arguments—mixing verbose descriptors like
workflow-id-or-filewith simpler ones likepattern, making the interface harder to learn and use.Changes
Simplified argument names across all commands:
workflow-id→workflow(11 commands: new, enable, disable, compile, run, fix, logs, update, and MCP subcommands)workflow-id-or-file→workflow(MCP list/inspect/add)mcp-server-name→server(MCP add)mcp-server→server(MCP list-tools)workflow-id-pattern→pattern(remove command)run-id-or-url→run-id(audit command)pull-request-url→pr-url(PR transfer)id→campaign-id(campaign new)Added validation tests to enforce consistency:
<required>vs[optional])Example
Before:
After:
All functionality remains unchanged—only the displayed syntax in help text is clearer.
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.