search-replace-command
search-replace-command copied to clipboard
I can not replace a word with several hyphens in its name
I use: wp search-replace "--old-word" "new word"
Error: unknown --old-word parameter
Hi @mdenisenko
Try wp search-replace '--old-word' "new word"
I have tried this. Same error.
I am able to reproduce this issue in my local environment and it does seem to be a bug. Even trying to escape the " and ' it does not work. @schlessera I believe that we could set this one as a bug, and I'm more than happy to work on this one, so feel free to assign me to this issue.