diff options
author | David Peter <sharkdp@users.noreply.github.com> | 2024-02-23 21:51:55 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-23 21:51:55 +0100 |
commit | 3ffa3648cf162853e7c1494c72f442c260649651 (patch) | |
tree | 2fcdc69fa3e1e58bac7d198892944801698262e1 | |
parent | 5c2cc5388273b8f3f7fe46380b0156314a7b9750 (diff) | |
parent | 875046e4cdf002b86c36c67fa78442d3090b87ee (diff) |
Merge pull request #2853 from einfachIrgendwer0815/document_default_style_components
Document default style components
-rw-r--r-- | doc/long-help.txt | 3 | ||||
-rw-r--r-- | src/bin/bat/clap_app.rs | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/doc/long-help.txt b/doc/long-help.txt index 3ac4a40f..1aae60d8 100644 --- a/doc/long-help.txt +++ b/doc/long-help.txt @@ -123,6 +123,9 @@ Options: set a default style, add the '--style=".."' option to the configuration file or export the BAT_STYLE environment variable (e.g.: export BAT_STYLE=".."). + By default, the following components are enabled: + changes, grid, header-filename, numbers, snip + Possible values: * default: enables recommended style components (default). diff --git a/src/bin/bat/clap_app.rs b/src/bin/bat/clap_app.rs index 6ceed784..d3cb9276 100644 --- a/src/bin/bat/clap_app.rs +++ b/src/bin/bat/clap_app.rs @@ -432,6 +432,8 @@ pub fn build_app(interactive_output: bool) -> Command { pre-defined style ('full'). To set a default style, add the \ '--style=\"..\"' option to the configuration file or export the \ BAT_STYLE environment variable (e.g.: export BAT_STYLE=\"..\").\n\n\ + By default, the following components are enabled:\n \ + changes, grid, header-filename, numbers, snip\n\n\ Possible values:\n\n \ * default: enables recommended style components (default).\n \ * full: enables all available components.\n \ |