From 40be243004b095fe15bb2ece176692f8354cdf45 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Thu, 17 Dec 2020 16:23:45 -0800 Subject: Updated docs --- README.md | 1 + bp.1 | 4 ++++ 2 files changed, 5 insertions(+) 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 :` define a grammar rule * `-D` `--define-string :` define a grammar rule (string-pattern) * `-p` `--pattern ` provide a pattern (equivalent to `bp '\()'`) 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\fR] [\fI-p\fR|\fI--pattern\fR \fI\fR] [\fI-P\fR|\fI--pattern-string\fR \fI\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. -- cgit v1.2.3