summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Davison <dandavison7@gmail.com>2021-12-15 19:03:29 -0500
committerDan Davison <dandavison7@gmail.com>2021-12-15 19:03:29 -0500
commitab54c116ecf1947f3e6b8bda400e2c896d982232 (patch)
tree43e5cd0b4f01e28ba02370c0d58479d9e1413d10
parent0bf10022ad03b8e770b3daad29f765c5f4216fa5 (diff)
Update --help text
-rw-r--r--README.md24
-rw-r--r--src/cli.rs10
2 files changed, 21 insertions, 13 deletions
diff --git a/README.md b/README.md
index fdd92ff6..57cce4d3 100644
--- a/README.md
+++ b/README.md
@@ -800,12 +800,14 @@ FLAGS:
OPTIONS:
--features <features>
Name of delta features to use (space-separated). A feature is a named collection of delta options in
- ~/.gitconfig. See FEATURES section [env: DELTA_FEATURES=] [default: ]
+ ~/.gitconfig. See FEATURES section. The environment variable DELTA_FEATURES can be set to a space-separated
+ list of feature names. If this is preceded with a space, the features from the environment variable will be
+ added to those specified in git config. E.g. DELTA_FEATURES=+side-by-side can be used to activate side-by-
+ side temporarily
--syntax-theme <syntax-theme>
- The code syntax-highlighting theme to use. Use --show-syntax-themes to demo available themes. If the syntax-
- highlighting theme is not set using this option, it will be taken from the BAT_THEME environment
- variable, if that contains a valid theme name. --syntax-theme=none disables all syntax highlighting [env:
- BAT_THEME=]
+ The code syntax-highlighting theme to use. Use --show-syntax-themes to demo available themes. Defaults to
+ the value of the BAT_THEME environment variable, if that contains a valid theme name. --syntax-theme=none
+ disables all syntax highlighting
--minus-style <minus-style>
Style (foreground, background, attributes) for removed lines. See STYLES section [default: normal auto]
--zero-style <zero-style>
@@ -817,13 +819,13 @@ OPTIONS:
[default: normal auto]
--minus-non-emph-style <minus-non-emph-style>
Style (foreground, background, attributes) for non-emphasized sections of removed lines that have an
- emphasized section. Defaults to --minus-style. See STYLES section [default: auto auto]
+ emphasized section. See STYLES section [default: minus-style]
--plus-emph-style <plus-emph-style>
Style (foreground, background, attributes) for emphasized sections of added lines. See STYLES section
[default: syntax auto]
--plus-non-emph-style <plus-non-emph-style>
Style (foreground, background, attributes) for non-emphasized sections of added lines that have an
- emphasized section. Defaults to --plus-style. See STYLES section [default: auto auto]
+ emphasized section. See STYLES section [default: plus-style]
--commit-style <commit-style>
Style (foreground, background, attributes) for the commit hash line. See STYLES section. The style 'omit'
can be used to remove the commit hash line from the output [default: raw]
@@ -1026,7 +1028,9 @@ OPTIONS:
"24bit". If your terminal application (the application you use to enter commands at a shell prompt) supports
24 bit colors, then it probably already sets this environment variable, in which case you don't need to do
anything [default: auto]
- --24-bit-color <24-bit-color> Deprecated: use --true-color
+ --24-bit-color <24-bit-color>
+ Deprecated: use --true-color
+
--inspect-raw-lines <inspect-raw-lines>
Whether to examine ANSI color escape sequences in raw lines received from Git and handle lines colored in
certain ways specially. This is on by default: it is how Delta supports Git's --color-moved feature. Set
@@ -1074,7 +1078,9 @@ OPTIONS:
--hunk-color <deprecated-hunk-color>
Deprecated: use --hunk-header-style='my_foreground_color' --hunk-header-decoration-
style='my_foreground_color'
- --theme <deprecated-theme> Deprecated: use --syntax-theme
+ --theme <deprecated-theme>
+ Deprecated: use --syntax-theme
+
ARGS:
<minus-file> First file to be compared when delta is being used in diff mode: `delta file_1 file_2` is
diff --git a/src/cli.rs b/src/cli.rs
index f91f6d2a..ae93cacf 100644
--- a/src/cli.rs
+++ b/src/cli.rs
@@ -322,14 +322,16 @@ pub struct Opt {
////////////////////////////////////////////////////////////////////////////////////////////
#[structopt(long = "features")]
/// Name of delta features to use (space-separated). A feature is a named collection of delta
- /// options in ~/.gitconfig. See FEATURES section.
+ /// options in ~/.gitconfig. See FEATURES section. The environment variable DELTA_FEATURES can
+ /// be set to a space-separated list of feature names. If this is preceded with a space, the
+ /// features from the environment variable will be added to those specified in git config. E.g.
+ /// DELTA_FEATURES=+side-by-side can be used to activate side-by-side temporarily.
pub features: Option<String>,
#[structopt(long = "syntax-theme")]
/// The code syntax-highlighting theme to use. Use --show-syntax-themes to demo available
- /// themes. If the syntax-highlighting theme is not set using this option, it will be taken
- /// from the BAT_THEME environment variable, if that contains a valid theme name.
- /// --syntax-theme=none disables all syntax highlighting.
+ /// themes. Defaults to the value of the BAT_THEME environment variable, if that contains a
+ /// valid theme name. --syntax-theme=none disables all syntax highlighting.
pub syntax_theme: Option<String>,
#[structopt(long = "minus-style", default_value = "normal auto")]