Skip to content

docs(claude): add 'no legacy CLI flag aliases' rule#423

Merged
axisrow merged 1 commit into
mainfrom
docs/no-legacy-aliases-rule
May 28, 2026
Merged

docs(claude): add 'no legacy CLI flag aliases' rule#423
axisrow merged 1 commit into
mainfrom
docs/no-legacy-aliases-rule

Conversation

@axisrow

@axisrow axisrow commented May 28, 2026

Copy link
Copy Markdown
Owner

Summary

Add a project-wide rule to `CLAUDE.md`: when a CLI flag name diverges from its WSDL-canonical form, rename it as a breaking change rather than keeping the old name as a second Click alias.

Background: during Wave 2 (#402) the proposed approach for `campaigns get` was to register both `--text-campaign-fields` (legacy) and `--text-campaign-field-names` (canonical) as aliases on the same Click option. This was rejected in favour of a clean breaking rename — see PR #421 for the reference implementation.

This commit codifies the rule so future contributors / agents don't re-litigate it.

Test plan

Documentation-only change.

  • `grep -n "No legacy CLI flag aliases" CLAUDE.md` shows the new rule.
  • The rule is placed in `## Key Conventions` right after the `--dry-run` entry, where command-authoring conventions live.

🤖 Generated with Claude Code

When the WSDL canonical name differs from an existing CLI flag, rename
it as a breaking change rather than keeping the old name as a second
Click alias. Reference implementation: PR #421 (campaigns).

This rule was articulated during Wave 2 (#402) review and applies
project-wide. New CLI options must be exactly the kebab-case form of
the WSDL request parameter (e.g. `SitelinkFieldNames` →
`--sitelink-field-names`).
Copilot AI review requested due to automatic review settings May 28, 2026 05:28

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@axisrow
axisrow merged commit 2826d1d into main May 28, 2026
6 checks passed
@axisrow
axisrow deleted the docs/no-legacy-aliases-rule branch May 28, 2026 05:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants