We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2bd6ee0 commit 049f1e2Copy full SHA for 049f1e2
OptionParser/OptionParser.swift
@@ -2,12 +2,14 @@
2
// This file is part of OptionParser: https://github.com/lorentey/OptionParser
3
// For licensing information, see the file LICENSE.md in the Git repository above.
4
5
-public struct OptionError: Error {
6
- let message: String
+public struct OptionError: Error, CustomStringConvertible {
+ public let message: String
7
8
- init(_ message: String) {
+ public init(_ message: String) {
9
self.message = message
10
}
11
+
12
+ public var description: String { return message }
13
14
15
public struct OptionParser<Record> {
0 commit comments