aboutsummaryrefslogtreecommitdiff
path: root/bp.1
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2021-01-15 18:23:18 -0800
committerBruce Hill <bruce@bruce-hill.com>2021-01-15 18:23:18 -0800
commitd31d2e89850d3132850e0f2e1ce6d973bd482073 (patch)
tree654739b075372bbe55b4082b2c77d7e70813e7fb /bp.1
parent87ad1efc24521c0a17c1d8d627518f1eb9f4fa4f (diff)
Added interactive confirmation mode for replacing text
Diffstat (limited to 'bp.1')
-rw-r--r--bp.14
1 files changed, 4 insertions, 0 deletions
diff --git a/bp.1 b/bp.1
index 5b220ad..68f452e 100644
--- a/bp.1
+++ b/bp.1
@@ -12,6 +12,7 @@ bp \- Bruce's Parsing Expression Grammar tool
[\fI-l\fR|\fI--list-files\fR]
[\fI-i\fR|\fI--ignore-case\fR \fI<pattern>\fR]
[\fI-I\fR|\fI--inplace\fR]
+[\fI-C\fR|\fI--confirm\fR]
[\fI-p\fR|\fI--pattern\fR \fI<pattern>\fR]
[\fI-P\fR|\fI--pattern-string\fR \fI<string-pattern>\fR]
[\fI-r\fR|\fI--replace\fR \fI<replacement>\fR]
@@ -40,6 +41,9 @@ Perform pattern matching case-insensitively.
.B \-I\fR, \fB--inplace
Perform filtering or replacement in-place (i.e. overwrite files with new content).
+.B \-C\fR, \fB--confirm
+During in-place modification of a file, confirm before each modification.
+
.B \-r\fR, \fB--replace \fI<replacement>\fR
Replace all occurrences of the main pattern with the given string.