1
0
mirror of https://github.com/sharkdp/bat synced 2026-08-09 19:51:48 +00:00

updated PR based on comments

This commit is contained in:
Alexander Karlis
2020-09-11 22:54:47 -04:00
committed by David Peter
parent ccdea6a429
commit d349974089
3 changed files with 14 additions and 7 deletions
+3 -2
View File
@@ -165,7 +165,7 @@ impl App {
// There's no point in wrapping when this is the case.
WrappingMode::NoWrapping
},
colored_output: self.matches.is_present("always-decorations")
colored_output: self.matches.is_present("force-colorization")
|| match self.matches.value_of("color") {
Some("always") => true,
Some("never") => false,
@@ -178,7 +178,7 @@ impl App {
loop_through: !(self.interactive_output
|| self.matches.value_of("color") == Some("always")
|| (self.matches.value_of("decorations") == Some("always")
|| self.matches.is_present("always-decorations"))),
|| self.matches.is_present("force-colorization"))),
tab_width: self
.matches
.value_of("tabs")
@@ -288,6 +288,7 @@ impl App {
fn style_components(&self) -> Result<StyleComponents> {
let matches = &self.matches;
println!("{:#?}", matches);
Ok(StyleComponents(
if matches.value_of("decorations") == Some("never") {
HashSet::new()