summary refs log tree commit diff
path: root/bin/man1
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-02-17 14:38:11 -0500
committerJune McEnroe <june@causal.agency>2019-02-17 14:38:11 -0500
commitbacacf6678168f3b3d0657c4fbbcac0edcb5c799 (patch)
tree1e364bcc3c44422065acbbf4a6b27192203e0377 /bin/man1
parentAlways split spans after newlines (diff)
downloadsrc-bacacf6678168f3b3d0657c4fbbcac0edcb5c799.tar.gz
src-bacacf6678168f3b3d0657c4fbbcac0edcb5c799.zip
Add line numbers to hi
Renames previous -n option to -m to stay consistent with cat -n.
Prefixing lines with line numbers affects where the first tab indent
ends up relative to the text above it. Not sure if it's worth fixing
somehow.
Diffstat (limited to 'bin/man1')
-rw-r--r--bin/man1/hi.111
1 files changed, 7 insertions, 4 deletions
diff --git a/bin/man1/hi.1 b/bin/man1/hi.1
index c48fa796..afe0fe0c 100644
--- a/bin/man1/hi.1
+++ b/bin/man1/hi.1
@@ -1,4 +1,4 @@
-.Dd February 12, 2019
+.Dd February 17, 2019
 .Dt HI 1
 .Os
 .
@@ -8,9 +8,10 @@
 .
 .Sh SYNOPSIS
 .Nm
+.Op Fl n
 .Op Fl f Ar format
 .Op Fl l Ar lang
-.Op Fl n Ar name
+.Op Fl m Ar name
 .Op Fl o Ar opts
 .Op Ar file
 .Nm
@@ -33,9 +34,11 @@ Compile all regular expressions and exit.
 Set the output format.
 .It Fl l Ar lang
 Set the input language.
-.It Fl n Ar name
+.It Fl m Ar name
 Override the name used
 to infer the input language.
+.It Fl n
+Output line numbers.
 .It Fl o Ar opts
 Set output format options.
 .Ar opts
@@ -111,7 +114,7 @@ name.
 If no input language is set with
 .Fl l ,
 it may be inferred from the name set by
-.Fl n
+.Fl m
 or from the provided
 .Ar file
 name.