Skip to content

Commit

Permalink
GitTools#2210 - remove old LogLevel argument, use only Verbosity
Browse files Browse the repository at this point in the history
  • Loading branch information
arturcic committed May 26, 2022
1 parent 880202d commit 0b9b212
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/GitVersion.App/ArgumentParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -409,12 +409,7 @@ private static void ParseOutput(Arguments arguments, IEnumerable<string>? values

private static void ParseVerbosity(Arguments arguments, string? value)
{
// first try the old version, this check will be removed in version 6.0.0, making it a breaking change
if (Enum.TryParse(value, true, out LogLevel logLevel))
{
arguments.Verbosity = LogExtensions.GetVerbosityForLevel(logLevel);
}
else if (!Enum.TryParse(value, true, out arguments.Verbosity))
if (!Enum.TryParse(value, true, out arguments.Verbosity))
{
throw new WarningException($"Could not parse Verbosity value '{value}'");
}
Expand Down

0 comments on commit 0b9b212

Please sign in to comment.