aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2021-01-20 16:12:46 -0800
committerBruce Hill <bruce@bruce-hill.com>2021-01-20 16:12:46 -0800
commitc46a8227d0bfc31e4f71b6441303348f5c31174b (patch)
treea06e3747fa09c0d737f724000f0e516f9c853b32 /README.md
parentb50ad0cad099c99d4e739fc465b69779f661b77d (diff)
Added --skip flag for skipping over patterns
Diffstat (limited to 'README.md')
-rw-r--r--README.md3
1 files changed, 2 insertions, 1 deletions
diff --git a/README.md b/README.md
index 1bf5301..0453771 100644
--- a/README.md
+++ b/README.md
@@ -20,7 +20,8 @@ It's written in pure C with no dependencies.
* `-j` `--json` print matches as JSON objects
* `-l` `--list-files` print only filenames containing matches
* `-p` `--pattern <pat>` provide a pattern (equivalent to `bp '\(<pat>)'`)
-* `-r` `--replace <replacement>` replace the input pattern with the given replacement
+* `-r` `--replace <replacement>` replace the input pattern with the given replacement
+* `-s` `--skip <skip pattern>` skip over the given pattern when looking for matches
* `-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` `--git` get filenames from git