wp-cli / search-replace-command

Searches/replaces strings in the database.
MIT License
57 stars 45 forks source link

I can not replace a word with several hyphens in its name #132

Open wppunk opened 4 years ago

wppunk commented 4 years ago

I use: wp search-replace "--old-word" "new word"

Error: unknown --old-word parameter

wojsmol commented 4 years ago

Hi @mdenisenko Try wp search-replace '--old-word' "new word"

wppunk commented 4 years ago

I have tried this. Same error.

marksabbath commented 4 years ago

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.