mirror of
https://github.com/sharkdp/hyperfine.git
synced 2024-11-29 15:03:55 +03:00
Change color override part
This commit is contained in:
parent
681e506a3f
commit
df171392ec
@ -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") {
|
||||
|
Loading…
Reference in New Issue
Block a user