@@ -165,11 +165,14 @@ impl App {
165 // There's no point in wrapping when this is the case.
165 // There's no point in wrapping when this is the case.
166 WrappingMode::NoWrapping
166 WrappingMode::NoWrapping
168+ colored_output: self.matches.is_present("always-decorations")
168− colored_output: match self.matches.value_of("color") {
169+ || match self.matches.value_of("color") {
169− Some("always") => true,
170+ Some("always") => true,
170− Some("never") => false,
171+ Some("never") => false,
172+ Some("auto") | _ => {
171− Some("auto") | _ => env::var_os("NO_COLOR").is_none() && self.interactive_output,
173+ env::var_os("NO_COLOR").is_none() && self.interactive_output
173 paging_mode,
176 paging_mode,
174 term_width: maybe_term_width.unwrap_or(Term::stdout().size().1 as usize),
177 term_width: maybe_term_width.unwrap_or(Term::stdout().size().1 as usize),
175 loop_through: !(self.interactive_output
178 loop_through: !(self.interactive_output
@@ -285,6 +288,7 @@ impl App {
286 fn style_components(&self) -> Result<StyleComponents> {
289 fn style_components(&self) -> Result<StyleComponents> {
287 let matches = &self.matches;
290 let matches = &self.matches;
291+ println!("{:#?}", matches);
288 Ok(StyleComponents(
292 Ok(StyleComponents(
289 if matches.value_of("decorations") == Some("never") {
293 if matches.value_of("decorations") == Some("never") {
290 HashSet::new()
294 HashSet::new()