Skip to content

chore(impact): make --file the primary flag, keep --file_path as alias#526

Merged
coseto6125 merged 1 commit into
mainfrom
chore/impact-file-flag-alias
May 31, 2026
Merged

chore(impact): make --file the primary flag, keep --file_path as alias#526
coseto6125 merged 1 commit into
mainfrom
chore/impact-file-flag-alias

Conversation

@coseto6125
Copy link
Copy Markdown
Owner

ecp impact's disambiguation flag was --file_path (with a --file-path alias) — both easy to mistype, and clap's "a similar argument exists" tip pointed at the longer name. The struct field is already file, so the snake_case external name was gratuitous.

Promote --file to the primary spelling; keep --file_path and --file-path as aliases so existing scripts and muscle memory don't break. clap now suggests --file on a typo, and --help shows ecp impact --file <FILE>.

Verified all three spellings resolve identically against a real repo; a --fil typo now suggests --file.

Pure flag rename with back-compat aliases — no behaviour change, no schema/parser surface.

`ecp impact`'s disambiguation flag was `--file_path` (with `--file-path`
alias). Both are easy to mistype, and clap's "a similar argument exists"
tip pointed at the longer name. The struct field is already `file`, so
the snake_case external name was gratuitous.

Promote `--file` to the primary spelling; keep `--file_path` and
`--file-path` as aliases so existing scripts and habits don't break.
clap now suggests `--file` on a typo, and `--help` shows
`ecp impact --file <FILE>`.

Pure flag rename with back-compat aliases — no behaviour change, no
schema/parser surface.
@coseto6125 coseto6125 enabled auto-merge (squash) May 31, 2026 02:02
@coseto6125 coseto6125 added the merge-queue Opt-in to Mergify merge queue label May 31, 2026
@github-actions
Copy link
Copy Markdown
Contributor

ecp impact cache (0 symbols) — internal, used by ecp dev pr-analyze

[]

@github-actions github-actions Bot added the ecp:risk-low ecp signal label May 31, 2026
@coseto6125 coseto6125 merged commit cc39c76 into main May 31, 2026
18 checks passed
@coseto6125 coseto6125 deleted the chore/impact-file-flag-alias branch May 31, 2026 02:27
coseto6125 added a commit that referenced this pull request May 31, 2026
The v0.6.2 section was generated by the release-PR (#524) bump before
#523/#525/#526 merged, so it listed only #520/#521/#522. Backfill the
three before tagging v0.6.2 so the release notes match what the tag
actually ships:
- #525 field-reassign collision fix (Bug Fixes)
- #523 cypher prop-filter refactor (Refactor)
- #526 `--file` flag rename (Chore)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ecp:risk-low ecp signal merge-queue Opt-in to Mergify merge queue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant