mirror of
https://github.com/sharkdp/hyperfine.git
synced 2026-10-28 16:18:57 +00:00
Change color override part
This commit is contained in:
1 parent
681e506a3f
commit
df171392ec
1 file changed
+4
-2
+4
-2
@@ -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") {
|
||||
|
||||
Reference in new issue
Block a user