mirror of
https://github.com/sharkdp/bat.git
synced 2026-02-08 00:32:08 +00:00
feat: wire up quiet_empty config in app
This commit is contained in:
@@ -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")
|
||||||
|
|||||||
Reference in New Issue
Block a user