diff options
| -rw-r--r-- | README.md | 1 | ||||
| -rw-r--r-- | bp.1 | 4 |
2 files changed, 5 insertions, 0 deletions
@@ -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>)'`) @@ -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. |
