Update help text, closes #713

This commit is contained in:
sharkdp 2019-12-22 16:05:00 +01:00
parent 6311ca22f9
commit 20ba984c6d
2 changed files with 7 additions and 6 deletions

View File

@ -93,8 +93,9 @@ the pager completely, use the '\-\-paging' option. Example: '\-\-pager "less
.HP
\fB\-m\fR, \fB\-\-map\-syntax\fR <from:to>...
.IP
Map a file extension or file name to an existing syntax. For example, to
highlight *.conf files with the INI syntax, use '\-m conf:ini'. To
Map a file extension or file name to an existing syntax (specified by a
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
\&.myignore:gitignore'.
.HP

View File

@ -246,10 +246,10 @@ pub fn build_app(interactive_output: bool) -> ClapApp<'static, 'static> {
.value_name("from:to")
.help("Map a file extension or name to an existing syntax.")
.long_help(
"Map a file extension or file name to an existing syntax. For example, \
to highlight *.conf files with the INI syntax, use '-m conf:ini'. \
To highlight files named '.myignore' with the Git Ignore syntax, use \
'-m .myignore:gitignore'.",
"Map a file extension or file name to an existing syntax (specified by a 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 .myignore:gitignore'.",
)
.takes_value(true),
)