From f6a4438d5e79597ea3180876fe604779544750a0 Mon Sep 17 00:00:00 2001 From: Daniel Cazzulino Date: Mon, 2 Sep 2024 17:36:13 -0300 Subject: [PATCH] Revert help.md change to the one that works --- src/dotnet-retest/Program.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/dotnet-retest/Program.cs b/src/dotnet-retest/Program.cs index 71eafa3..fa6a0d0 100644 --- a/src/dotnet-retest/Program.cs +++ b/src/dotnet-retest/Program.cs @@ -31,8 +31,9 @@ config.SetApplicationName("dotnet retest"); config.SetApplicationVersion(ThisAssembly.Project.Version); - if (Environment.GetEnvironmentVariables().Contains("NO_COLOR")) - config.Settings.HelpProviderStyles = null; + if (Environment.GetEnvironmentVariables().Contains("NO_COLOR") && + config.Settings.HelpProviderStyles?.Options is { } options) + options.DefaultValue = Style.Plain; }); if (args.Contains("--version"))