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"))