aboutsummaryrefslogtreecommitdiff
path: root/bp.1
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2021-09-02 18:07:18 -0700
committerBruce Hill <bruce@bruce-hill.com>2021-09-02 18:07:18 -0700
commit615d94ba68be75520fbe177b971c96c2e739436f (patch)
treede0bfb5f33475f6f08b2765fd63d5a78d09ff80f /bp.1
parent1cf17cf95c75f7d02a0b9da79d9a78811e1ee9d8 (diff)
Improved formatting options
Diffstat (limited to 'bp.1')
-rw-r--r--bp.111
1 files changed, 7 insertions, 4 deletions
diff --git a/bp.1 b/bp.1
index 4528dbf..1ccca39 100644
--- a/bp.1
+++ b/bp.1
@@ -75,11 +75,14 @@ matches.
If \f[I]N\f[R] is \f[B]\[lq]all\[rq]\f[R], print all text before and
after each match.
.TP
-\f[B]-f\f[R], \f[B]--format\f[R] \f[I]auto\f[R]|\f[I]fancy\f[R]|\f[I]plain\f[R]
+\f[B]-f\f[R], \f[B]--format\f[R] \f[I]fancy\f[R]|\f[I]plain\f[R]|\f[I]bare\f[R]|\f[I]file:line\f[R]|\f[I]auto\f[R]
Set the output format.
-\f[I]fancy\f[R] includes colors and line numbers, \f[I]plain\f[R]
-includes neither, and \f[I]auto\f[R] (the default) uses \f[I]fancy\f[R]
-formatting only when the output is a TTY.
+\f[I]fancy\f[R] includes colors and line numbers, \f[I]plain\f[R] prints
+line numbers with no coloring, \f[I]bare\f[R] prints only the match
+text, \f[I]file:line\f[R] prints the filename and line number for each
+match (grep-style), and \f[I]auto\f[R] (the default) uses
+\f[I]fancy\f[R] formatting when the output is a TTY and \f[I]plain\f[R]
+formatting otherwise.
.TP
\f[B]-h\f[R], \f[B]--help\f[R]
Print the usage and exit.