File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ Quick links: [Using](#using) | [Installing](#installing) | [Contributing](#contr
10
10
## Using
11
11
12
12
~~~
13
- wp search-replace <old> <new> [<table>...] [--dry-run] [--network] [--all-tables-with-prefix] [--all-tables] [--export[=<file>]] [--export_insert_size=<rows>] [--skip-columns=<columns>] [--include-columns=<columns>] [--precise] [--recurse-objects] [--verbose] [--regex] [--regex-flags=<regex-flags>] [--regex-delimiter=<regex-delimiter>] [--format=<format>] [--report] [--report-changed-only]
13
+ wp search-replace <old> <new> [<table>...] [--dry-run] [--network] [--all-tables-with-prefix] [--all-tables] [--export[=<file>]] [--export_insert_size=<rows>] [--skip-columns=<columns>] [--include-columns=<columns>] [--precise] [--recurse-objects] [--verbose] [--regex] [--regex-flags=<regex-flags>] [--regex-delimiter=<regex-delimiter>] [--format=<format>] [--report] [--report-changed-only] [--log[=<file>]] [--before_context=<num>] [--after_context=<num>]
14
14
~~~
15
15
16
16
Searches through all rows in a selection of tables and replaces
@@ -103,7 +103,17 @@ change primary key values.
103
103
Produce report. Defaults to true.
104
104
105
105
[--report-changed-only]
106
- Report changed fields only. Defaults to false.
106
+ Report changed fields only. Defaults to false, unless logging, when it defaults to true.
107
+
108
+ [--log[=<file>]]
109
+ Log the items changed. If <file> is not supplied or is "-", will output to STDOUT.
110
+ Warning: causes a significant slow down, similar or worse to enabling --precise or --regex.
111
+
112
+ [--before_context=<num>]
113
+ For logging, number of characters to display before the old match and the new replacement. Default 40. Ignored if not logging.
114
+
115
+ [--after_context=<num>]
116
+ For logging, number of characters to display after the old match and the new replacement. Default 40. Ignored if not logging.
107
117
108
118
** EXAMPLES**
109
119
You can’t perform that action at this time.
0 commit comments