aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md1
-rw-r--r--bp.14
2 files changed, 5 insertions, 0 deletions
diff --git a/README.md b/README.md
index 24cb549..cbd55ee 100644
--- a/README.md
+++ b/README.md
@@ -12,6 +12,7 @@ It's written in pure C with no dependencies.
* `-i` `--ignore-case` perform a case-insensitive match
* `-e` `--explain` print an explanation of the matches
* `-j` `--json` print matches as JSON objects
+* `-l` `--list-files` print only filenames containing matches
* `-d` `--define <name>:<def>` define a grammar rule
* `-D` `--define-string <name>:<def>` define a grammar rule (string-pattern)
* `-p` `--pattern <pat>` provide a pattern (equivalent to `bp '\(<pat>)'`)
diff --git a/bp.1 b/bp.1
index 6eaf937..48076ec 100644
--- a/bp.1
+++ b/bp.1
@@ -9,6 +9,7 @@ bp \- Bruce's Parsing Expression Grammar tool
[\fI-v\fR|\fI--verbose\fR]
[\fI-e\fR|\fI--explain\fR]
[\fI-j\fR|\fI--json\fR]
+[\fI-l\fR|\fI--list-files\fR]
[\fI-i\fR|\fI--ignore-case\fR \fI<pattern>\fR]
[\fI-p\fR|\fI--pattern\fR \fI<pattern>\fR]
[\fI-P\fR|\fI--pattern-string\fR \fI<string-pattern>\fR]
@@ -31,6 +32,9 @@ Print a visual explanation of the matches.
.B \-j\fR, \fB--json
Print a JSON list of the matches. (Pairs with \fB--verbose\fR for more detail)
+.B \-l\fR, \fB--list-files
+Print only the names of files containing matches instead of the matches themselves.
+
.B \-i\fR, \fB--ignore-case
Perform pattern matching case-insensitively.