From 8ff80b09ccd7e680829d0911d965ad4b0d6f7939 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Fri, 15 Jan 2021 01:19:10 -0800 Subject: Major overhaul of how different modes of behavior work. Approximately 2x speedup and 2x memory footprint reduction. Also removed --mode and VM_HIDE (~ operator), and added --context. Printing works better now. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'README.md') diff --git a/README.md b/README.md index e3f41ed..f90b62d 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ It's written in pure C with no dependencies. * `-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 -* `-m` `--mode ` set the behavior mode (defult: `find-all`) +* `-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 See `man ./bp.1` for more details. -- cgit v1.2.3