From 1ae16fca90e326e11a284de232362d43059a07fb Mon Sep 17 00:00:00 2001 From: sharkdp Date: Sun, 10 Jan 2021 16:21:17 +0100 Subject: [PATCH] Improve --map-syntax documentation, see #1386 --- src/bin/bat/clap_app.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/bin/bat/clap_app.rs b/src/bin/bat/clap_app.rs index 87cb2a65..ea8efd89 100644 --- a/src/bin/bat/clap_app.rs +++ b/src/bin/bat/clap_app.rs @@ -328,7 +328,8 @@ pub fn build_app(interactive_output: bool) -> ClapApp<'static, 'static> { "Map a glob pattern to an existing syntax name. The glob pattern is matched \ on the full path and the filename. For example, to highlight *.build files \ with the Python syntax, use -m '*.build:Python'. To highlight files named \ - '.myignore' with the Git Ignore syntax, use -m '.myignore:Git Ignore'.", + '.myignore' with the Git Ignore syntax, use -m '.myignore:Git Ignore'. Note \ + that the right-hand side is the *name* of the syntax, not a file extension.", ) .takes_value(true), )