mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
SwiftSyntax: make Swift test utilities build on linux. (#18496)
This commit is contained in:
@@ -1,17 +1,15 @@
|
||||
import Foundation
|
||||
|
||||
public struct CommandLineArguments {
|
||||
public struct MissingArgumentError: LocalizedError {
|
||||
public struct MissingArgumentError: Error, CustomStringConvertible {
|
||||
let argName: String
|
||||
|
||||
public var errorDescription: String? {
|
||||
public var description: String {
|
||||
return "Missing required argument: \(argName)"
|
||||
}
|
||||
}
|
||||
public struct UnkeyedArgumentError: LocalizedError {
|
||||
public struct UnkeyedArgumentError: Error, CustomStringConvertible {
|
||||
let argName: String
|
||||
|
||||
public var errorDescription: String? {
|
||||
public var description: String {
|
||||
return "Unexpectedly found command line argument \(argName) without a key"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user