Change color override part

This commit is contained in:
sharkdp 2018-09-28 21:25:18 +02:00 committed by David Peter
parent 681e506a3f
commit df171392ec

View File

@ -184,8 +184,10 @@ fn build_hyperfine_options(matches: &ArgMatches) -> Result<HyperfineOptions, Opt
}
match options.output_style {
OutputStyleOption::Full | OutputStyleOption::Color => colored::control::unset_override(),
_ => colored::control::set_override(false),
OutputStyleOption::Basic | OutputStyleOption::NoColor => {
colored::control::set_override(false)
}
_ => {}
}
if matches.is_present("ignore-failure") {