From 20ba984c6d73e59cfeb315c1d17962a10fc64e9c Mon Sep 17 00:00:00 2001 From: sharkdp Date: Sun, 22 Dec 2019 16:05:00 +0100 Subject: [PATCH] Update help text, closes #713 --- assets/manual/bat.1.in | 5 +++-- src/bin/bat/clap_app.rs | 8 ++++---- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/assets/manual/bat.1.in b/assets/manual/bat.1.in index 00aeda46..e813e038 100644 --- a/assets/manual/bat.1.in +++ b/assets/manual/bat.1.in @@ -93,8 +93,9 @@ the pager completely, use the '\-\-paging' option. Example: '\-\-pager "less .HP \fB\-m\fR, \fB\-\-map\-syntax\fR ... .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 diff --git a/src/bin/bat/clap_app.rs b/src/bin/bat/clap_app.rs index 536488d0..2b4801db 100644 --- a/src/bin/bat/clap_app.rs +++ b/src/bin/bat/clap_app.rs @@ -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), )