mirror of
https://github.com/sharkdp/hyperfine.git
synced 2026-11-02 17:11:28 +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 {
|
match options.output_style {
|
||||||
OutputStyleOption::Full | OutputStyleOption::Color => colored::control::unset_override(),
|
OutputStyleOption::Basic | OutputStyleOption::NoColor => {
|
||||||
_ => colored::control::set_override(false),
|
colored::control::set_override(false)
|
||||||
|
}
|
||||||
|
_ => {}
|
||||||
}
|
}
|
||||||
|
|
||||||
if matches.is_present("ignore-failure") {
|
if matches.is_present("ignore-failure") {
|
||||||
|
|||||||
Reference in new issue
Block a user