diff options
author | sharkdp <davidpeter@web.de> | 2021-01-10 16:21:17 +0100 |
---|---|---|
committer | David Peter <sharkdp@users.noreply.github.com> | 2021-01-10 22:24:32 +0100 |
commit | 1ae16fca90e326e11a284de232362d43059a07fb (patch) | |
tree | baf41e9688c3d21f630c6ca246ec655c0b4d61c3 | |
parent | 0e2bef3b79bdb6a6ac537ea401cd2dfe813d9735 (diff) |
Improve --map-syntax documentation, see #1386
-rw-r--r-- | src/bin/bat/clap_app.rs | 3 |
1 files changed, 2 insertions, 1 deletions
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), ) |