From fcde4824d571055e802c8a589abb97861dd0f0a6 Mon Sep 17 00:00:00 2001 From: Keith Hall Date: Sun, 10 Jan 2021 22:14:00 +0200 Subject: [PATCH] Add missing command line options to the manpage --- assets/manual/bat.1.in | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) 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 ... .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 ... +.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 ... +.IP +Include N lines of context around added/removed/modified lines when using '\-\-diff'. +.HP \fB\-\-tabs\fR .IP Set the tab width to T spaces. Use a width of 0 to pass tabs through directly