Skip to content

Add --js as an alias for --replacement-js - #721

Merged
mathiasrw merged 4 commits into
mainfrom
copilot/add-js-alias-for-replacement-js
Oct 12, 2026
Merged

mathiasrw merged 4 commits into
mainfrom
copilot/add-js-alias-for-replacement-js

Conversation

Copilot AI commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

--replacement-js (-j) treats the replacement as JavaScript; --js was previously an unknown argument. This makes --js a first-class alias of that option.

Changes

  • CLI: register js as a yargs alias of -j / --replacement-js in src/cli.ts (help shows -j, --replacement-js, --js)
  • Docs: include --js in the README options table
  • Tests: cover -j and --js in test/cli/run.sh
rexreplace foo '2+2' my.file --js
# same as --replacement-js / -j

Copilot AI linked an issue Oct 12, 2026 that may be closed by this pull request
Copilot AI and others added 2 commits October 12, 2026 16:10
Co-authored-by: mathiasrw <1063454+mathiasrw@users.noreply.github.com>
Co-authored-by: mathiasrw <1063454+mathiasrw@users.noreply.github.com>
Copilot AI changed the title [WIP] Add --js as an alias for --replacement-js Add --js as an alias for --replacement-js Oct 12, 2026
Copilot AI requested a review from mathiasrw October 12, 2026 16:12
@mathiasrw
mathiasrw marked this pull request as ready for review October 12, 2026 16:27
@mathiasrw
mathiasrw merged commit bc34e4b into main Oct 12, 2026
7 checks passed
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.

Add --js as an alias for --replacement-js

2 participants