diff --git a/Sources/CommandLine.swift b/Sources/CommandLine.swift index 1c7386f6..b2fc75cb 100644 --- a/Sources/CommandLine.swift +++ b/Sources/CommandLine.swift @@ -359,7 +359,12 @@ func processArguments(_ args: [String], environment: [String: String] = [:], in } // Reporter - let reporter: Reporter = try args["reporter"].map { identifier in + let reporter: Reporter = try args["reporter"].flatMap { identifier in + if identifier.lowercased() == "default" { + // Avoid errors for explicit `default` added to work around bug in 0.53.9 + print("warning: Passing 'default' for --reporter is deprecated.", as: .warning) + return nil + } guard let reporter = Reporters.reporter( named: identifier, environment: environment diff --git a/Sources/Reporter.swift b/Sources/Reporter.swift index 580c573e..975f880a 100644 --- a/Sources/Reporter.swift +++ b/Sources/Reporter.swift @@ -67,7 +67,6 @@ final class DefaultReporter: Reporter { enum Reporters { static let all: [Reporter.Type] = [ - DefaultReporter.self, JSONReporter.self, GithubActionsLogReporter.self, ]