on master help sign in
Update help text, closes #713
commit20ba984c6d73e59cfeb315c1d17962a10fc64e9c authorsharkdp <davidpeter@web.de> dateSun 22 Dec 2019, 16:05 (7 years ago) parent6311ca2
2 files changed+7−6
assets/manual/bat.1.in+3−2 src/bin/bat/clap_app.rs+4−4
assets/manual/bat.1.in+3−2
@@ -93,8 +93,9 @@ the pager completely, use the '\-\-paging' option. Example: '\-\-pager "less
9393.HP
9494\fB\-m\fR, \fB\-\-map\-syntax\fR <from:to>...
9595.IP
96−Map a file extension or file name to an existing syntax. For example, to
97−highlight *.conf files with the INI syntax, use '\-m conf:ini'. To
96+Map a file extension or file name to an existing syntax (specified by a
97+file extension or file name). For example, to
98+highlight *.build files with the Python syntax, use '\-m build:py'. To
9899highlight files named '.myignore' with the Git Ignore syntax, use '\-m
99100\&.myignore:gitignore'.
100101.HP
src/bin/bat/clap_app.rs+4−4
@@ -246,10 +246,10 @@ pub fn build_app(interactive_output: bool) -> ClapApp<'static, 'static> {
246246 .value_name("from:to")
247247 .help("Map a file extension or name to an existing syntax.")
248248 .long_help(
249− "Map a file extension or file name to an existing syntax. For example, \
250− to highlight *.conf files with the INI syntax, use '-m conf:ini'. \
251− To highlight files named '.myignore' with the Git Ignore syntax, use \
252− '-m .myignore:gitignore'.",
249+ "Map a file extension or file name to an existing syntax (specified by a file \
250+ extension or file name). For example, to highlight *.build files with the \
251+ Python syntax, use '-m build:py'. To highlight files named '.myignore' with \
252+ the Git Ignore syntax, use '-m .myignore:gitignore'.",
253253 )
254254 .takes_value(true),
255255 )