mirror of
https://github.com/sharkdp/bat.git
synced 2025-06-01 07:25:59 +02:00
Update help text, closes #713
This commit is contained in:
parent
6311ca22f9
commit
20ba984c6d
5
assets/manual/bat.1.in
vendored
5
assets/manual/bat.1.in
vendored
@ -93,8 +93,9 @@ the pager completely, use the '\-\-paging' option. Example: '\-\-pager "less
|
|||||||
.HP
|
.HP
|
||||||
\fB\-m\fR, \fB\-\-map\-syntax\fR <from:to>...
|
\fB\-m\fR, \fB\-\-map\-syntax\fR <from:to>...
|
||||||
.IP
|
.IP
|
||||||
Map a file extension or file name to an existing syntax. For example, to
|
Map a file extension or file name to an existing syntax (specified by a
|
||||||
highlight *.conf files with the INI syntax, use '\-m conf:ini'. To
|
file extension or file name). For example, to
|
||||||
|
highlight *.build files with the Python syntax, use '\-m build:py'. To
|
||||||
highlight files named '.myignore' with the Git Ignore syntax, use '\-m
|
highlight files named '.myignore' with the Git Ignore syntax, use '\-m
|
||||||
\&.myignore:gitignore'.
|
\&.myignore:gitignore'.
|
||||||
.HP
|
.HP
|
||||||
|
@ -246,10 +246,10 @@ pub fn build_app(interactive_output: bool) -> ClapApp<'static, 'static> {
|
|||||||
.value_name("from:to")
|
.value_name("from:to")
|
||||||
.help("Map a file extension or name to an existing syntax.")
|
.help("Map a file extension or name to an existing syntax.")
|
||||||
.long_help(
|
.long_help(
|
||||||
"Map a file extension or file name to an existing syntax. For example, \
|
"Map a file extension or file name to an existing syntax (specified by a file \
|
||||||
to highlight *.conf files with the INI syntax, use '-m conf:ini'. \
|
extension or file name). For example, to highlight *.build files with the \
|
||||||
To highlight files named '.myignore' with the Git Ignore syntax, use \
|
Python syntax, use '-m build:py'. To highlight files named '.myignore' with \
|
||||||
'-m .myignore:gitignore'.",
|
the Git Ignore syntax, use '-m .myignore:gitignore'.",
|
||||||
)
|
)
|
||||||
.takes_value(true),
|
.takes_value(true),
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user