feat: wire up quiet_empty config in app

This commit is contained in:
dddffgg committed 2026-01-31 16:41:46 +08:00
1 parent 53a10e0b0a
commit 6f0a61cef9
1 file changed
+1
+1
View File
@@ -461,6 +461,7 @@ impl App {
Some("auto") => StripAnsiMode::Auto, Some("auto") => StripAnsiMode::Auto,
_ => unreachable!("other values for --strip-ansi are not allowed"), _ => unreachable!("other values for --strip-ansi are not allowed"),
}, },
quiet_empty: self.matches.get_flag("quiet-empty"),
theme: theme(self.theme_options()).to_string(), theme: theme(self.theme_options()).to_string(),
visible_lines: match self.matches.try_contains_id("diff").unwrap_or_default() visible_lines: match self.matches.try_contains_id("diff").unwrap_or_default()
&& self.matches.get_flag("diff") && self.matches.get_flag("diff")