summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKeith Hall <kingkeith+github@gmail.com>2021-01-10 22:14:00 +0200
committerDavid Peter <sharkdp@users.noreply.github.com>2021-01-10 22:24:32 +0100
commitfcde4824d571055e802c8a589abb97861dd0f0a6 (patch)
tree5369a81e5edb04d6dbc7202eb79cd0ce71f3a957
parentb0e5828d3f6d9daa667055afd12801a182fe4a95 (diff)
Add missing command line options to the manpage
-rw-r--r--assets/manual/bat.1.in14
1 files changed, 13 insertions, 1 deletions
diff --git a/assets/manual/bat.1.in b/assets/manual/bat.1.in
index 65a17fe1..5dd01609 100644
--- a/assets/manual/bat.1.in
+++ b/assets/manual/bat.1.in
@@ -40,7 +40,7 @@ language names and file extensions.
.HP
\fB\-H\fR, \fB\-\-highlight\-line\fR <N:M>...
.IP
-Highlight the specified line ranges with a different background color For example:
+Highlight the specified line ranges with a different background color. For example:
.RS
.IP "\-\-highlight\-line 40"
highlights line 40
@@ -52,6 +52,18 @@ highlights lines 1 to 40
highlights lines 40 to the end of the file
.RE
.HP
+\fB\-\-file\-name\fR <name>...
+.IP
+Specify the name to display for a file. Useful when piping data to {{PROJECT_EXECUTABLE}} from STDIN when {{PROJECT_EXECUTABLE}} does not otherwise know the filename. Note that the provided file name is also used for syntax detection.
+.HP
+\fB\-d\fR, \fB\-\-diff\fR
+.IP
+Only show lines that have been added/removed/modified with respect to the Git index. Use '\-\-diff\-context=N' to control how much context you want to see.
+.HP
+\fB\-\-diff\-context\fR <N>...
+.IP
+Include N lines of context around added/removed/modified lines when using '\-\-diff'.
+.HP
\fB\-\-tabs\fR <T>
.IP
Set the tab width to T spaces. Use a width of 0 to pass tabs through directly