summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornickelc <constantin.nickel@gmail.com>2023-03-01 22:13:46 +0100
committerGitHub <noreply@github.com>2023-03-01 16:13:46 -0500
commitafd36daf7ea63c6fa628c98e1f7ca5d6d3a51fa7 (patch)
tree25ba3b43e9b725944491b281375f55ddb3d4c006
parentf4be222c4485a0f4a87b119c1054c528a99208e6 (diff)
Fix the`--show-themes` command (#1320)
The command failed because the two empty arguments for the internal `Opt` parsing actually meant "<binary> <minus_file>" and since `minus_file` is now parsed with `PathBufValueParser` and the value parser rejects empty values.
-rw-r--r--src/subcommands/show_themes.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/subcommands/show_themes.rs b/src/subcommands/show_themes.rs
index e072e7a5..ba530b6a 100644
--- a/src/subcommands/show_themes.rs
+++ b/src/subcommands/show_themes.rs
@@ -29,7 +29,7 @@ pub fn show_themes(dark: bool, light: bool, computed_theme_is_light: bool) -> st
let git_config = git_config::GitConfig::try_create(&env);
let opt = cli::Opt::from_iter_and_git_config(
env.clone(),
- &["", "", "--navigate", "--show-themes"],
+ &["delta", "--navigate", "--show-themes"],
git_config,
);
let mut output_type =
@@ -41,7 +41,7 @@ pub fn show_themes(dark: bool, light: bool, computed_theme_is_light: bool) -> st
let git_config = git_config::GitConfig::try_create(&env);
let opt = cli::Opt::from_iter_and_git_config(
env.clone(),
- &["", "", "--features", theme],
+ &["delta", "--features", theme],
git_config,
);
let is_dark_theme = opt.dark;