summaryrefslogtreecommitdiffstats
path: root/src/cli.rs
diff options
context:
space:
mode:
authorDan Davison <dandavison7@gmail.com>2020-06-21 15:47:28 -0400
committerDan Davison <dandavison7@gmail.com>2020-06-21 15:56:48 -0400
commit4723cf025bcf4e18025e1cb0e89c005f322932a7 (patch)
tree1b353d66f8fe1f6c33727841e79e154bfb8dc1d2 /src/cli.rs
parent11216b424d2b1f01c47a56611f0abdf4a1905a34 (diff)
Make opt.features non-Option
Diffstat (limited to 'src/cli.rs')
-rw-r--r--src/cli.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cli.rs b/src/cli.rs
index 3433b570..1e157fb2 100644
--- a/src/cli.rs
+++ b/src/cli.rs
@@ -169,12 +169,12 @@ https://github.com/dandavison/delta/issues.
"
)]
pub struct Opt {
- #[structopt(long = "features", env = "DELTA_FEATURES")]
+ #[structopt(long = "features", env = "DELTA_FEATURES", default_value = "")]
/// Name of delta features to use (space-separated). A feature is a named collection of delta
/// options in ~/.gitconfig. The feature names can also be set using an environment variable
/// named DELTA_FEATURES. Two built-in features are available: 'diff-highlight' and
/// 'diff-so-fancy'. See FEATURES section.
- pub features: Option<String>,
+ pub features: String,
#[structopt(long = "syntax-theme", env = "BAT_THEME")]
/// The code syntax-highlighting theme to use. Use --list-syntax-themes to demo available