aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2021-01-17 09:21:58 -0800
committerBruce Hill <bruce@bruce-hill.com>2021-01-17 09:21:58 -0800
commit58af933f4e70e2b85b11ca05c799fce226ed1821 (patch)
treef3043d1aec783ed74cf494c9b2d371f197a2a674 /README.md
parent05b9b0ff9775bf5e63c1cc018f57f6a9ff910a58 (diff)
Added --git/-G
Diffstat (limited to 'README.md')
-rw-r--r--README.md5
1 files changed, 3 insertions, 2 deletions
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 <pat>` provide a pattern (equivalent to `bp '\(<pat>)'`)
* `-P` `--pattern-string <pat>` provide a string pattern (equivalent to `bp '<pat>'`, but may be useful if `'<pat>'` begins with a '-')
-* `-r` `--replace <replacement>` replace the input pattern with the given replacement
+* `-r` `--replace <replacement>` replace the input pattern with the given replacement
* `-c` `--context <N>` change how many lines of context are printed (`0`: no context, `all`: the whole file, `<N>` matching lines and `<N-1>` lines before/after)
-* `-g` `--grammar <grammar file>` use the specified file as a grammar
+* `-g` `--grammar <grammar file>` use the specified file as a grammar
+* `-G` `--git` get filenames from git
See `man ./bp.1` for more details.