Skip to content

Commit 1f37d07

Browse files
committed
#2210 - remove old LogLevel argument, use only Verbosity
1 parent 880202d commit 1f37d07

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/GitVersion.App/ArgumentParser.cs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -409,12 +409,7 @@ private static void ParseOutput(Arguments arguments, IEnumerable<string>? values
409409

410410
private static void ParseVerbosity(Arguments arguments, string? value)
411411
{
412-
// first try the old version, this check will be removed in version 6.0.0, making it a breaking change
413-
if (Enum.TryParse(value, true, out LogLevel logLevel))
414-
{
415-
arguments.Verbosity = LogExtensions.GetVerbosityForLevel(logLevel);
416-
}
417-
else if (!Enum.TryParse(value, true, out arguments.Verbosity))
412+
if (!Enum.TryParse(value, true, out arguments.Verbosity))
418413
{
419414
throw new WarningException($"Could not parse Verbosity value '{value}'");
420415
}

0 commit comments

Comments
 (0)