From 58af933f4e70e2b85b11ca05c799fce226ed1821 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sun, 17 Jan 2021 09:21:58 -0800 Subject: Added --git/-G --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index ec01682..1050f72 100644 --- a/README.md +++ b/README.md @@ -17,9 +17,10 @@ It's written in pure C with no dependencies. * `-l` `--list-files` print only filenames containing matches * `-p` `--pattern ` provide a pattern (equivalent to `bp '\()'`) * `-P` `--pattern-string ` provide a string pattern (equivalent to `bp ''`, but may be useful if `''` begins with a '-') -* `-r` `--replace ` replace the input pattern with the given replacement +* `-r` `--replace ` replace the input pattern with the given replacement * `-c` `--context ` change how many lines of context are printed (`0`: no context, `all`: the whole file, `` matching lines and `` lines before/after) -* `-g` `--grammar ` use the specified file as a grammar +* `-g` `--grammar ` use the specified file as a grammar +* `-G` `--git` get filenames from git See `man ./bp.1` for more details. -- cgit v1.2.3