Skip to content

Document empty replacement values#234

Open
yusufhay wants to merge 1 commit intowp-cli:mainfrom
yusufhay:docs/empty-replacement-example
Open

Document empty replacement values#234
yusufhay wants to merge 1 commit intowp-cli:mainfrom
yusufhay:docs/empty-replacement-example

Conversation

@yusufhay
Copy link
Copy Markdown

@yusufhay yusufhay commented May 6, 2026

Summary

  • Clarify that --new can be used for an empty replacement value
  • Add an example for removing a string with --new=''

Testing

  • php -l src/Search_Replace_Command.php
  • composer validate --no-check-publish
  • git diff --check

Closes #84

@yusufhay yusufhay requested a review from a team as a code owner May 6, 2026 22:55
@github-actions github-actions Bot added command:search-replace Related to 'search-replace' command scope:documentation Related to documentation labels May 6, 2026
@yusufhay yusufhay force-pushed the docs/empty-replacement-example branch from c5aaedb to 79a1350 Compare May 6, 2026 22:57
Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request updates the documentation and command help text for the search-replace command to clarify that the --new flag can be used to specify an empty replacement string. It also adds a practical example of removing a string by replacing it with an empty value. I have no feedback to provide.

@codecov
Copy link
Copy Markdown

codecov Bot commented May 6, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

command:search-replace Related to 'search-replace' command scope:documentation Related to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Enhance search-replace examples for empty parameter (and possible error notification)

1 participant