aboutsummaryrefslogtreecommitdiff
path: root/man
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-01-21 03:25:25 +0100
committerThomas Voss <mail@thomasvoss.com> 2024-01-21 03:25:25 +0100
commit5c927d7663bf6625222a562d99a31baa1228335d (patch)
tree0ae5dab7ae9688833732cf9ac4a01f17173cddab /man
parent4f93f935dc7a981ca073a322425c3f5929ffb644 (diff)
Document -b/--byte-offset
Diffstat (limited to 'man')
-rw-r--r--man/grab.113
1 files changed, 10 insertions, 3 deletions
diff --git a/man/grab.1 b/man/grab.1
index b2d3edd..eae6849 100644
--- a/man/grab.1
+++ b/man/grab.1
@@ -1,4 +1,4 @@
-.Dd January 18 2024
+.Dd January 21 2024
.Dt GRAB 1
.Os
.Sh NAME
@@ -7,7 +7,7 @@
.Sh SYNOPSIS
.Nm
.Op Fl s | z
-.Op Fl cfnU
+.Op Fl bcfnU
.Ar pattern
.Op Ar
.Nm
@@ -15,7 +15,7 @@
.Pp
.Nm "git grab"
.Op Fl s | z
-.Op Fl cnU
+.Op Fl bcnU
.Ar pattern
.Op Ar glob ...
.Nm "git grab"
@@ -79,6 +79,13 @@ options.
.Pp
The options are as follows:
.Bl -tag -width Ds
+.It Fl b , Fl Fl byte\-offset
+Report the positions of pattern matches using the byte offset/position in
+the file instead of the line and column.
+.Pp
+This option is useful if your text editor
+.Pq such as Xr vim 1 or Xr emacs 1
+supports jumping directly to a given byte offset/position.
.It Fl c , Fl Fl color
Force colored output,
even if the output device is not a TTY.