Skip to content

Commit

Permalink
Revert help.md change to the one that works
Browse files Browse the repository at this point in the history
  • Loading branch information
kzu committed Sep 2, 2024
1 parent 4c7d4f5 commit f6a4438
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/dotnet-retest/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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"))
Expand Down

0 comments on commit f6a4438

Please sign in to comment.