Skip to content

Commit 4fc9362

Browse files
authored
made option constructor public. (#4)
1 parent b48b2c9 commit 4fc9362

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

Sources/parsers/Option.swift

+9-8
Original file line numberDiff line numberDiff line change
@@ -88,14 +88,14 @@ open class OptionParser<T>: ValueParser<T> {
8888
}
8989

9090
public class Option: OptionParser<String> {
91-
override init(longName: String? = nil,
92-
shortName: String? = nil,
93-
description: String? = nil,
94-
longPrefix: String = "--",
95-
shortPrefix: String = "-",
96-
multiAllowed: Bool = false,
97-
stopToken: String? = "--",
98-
parsed: OnValueParsed<String>? = nil) {
91+
public override init(longName: String? = nil,
92+
shortName: String? = nil,
93+
description: String? = nil,
94+
longPrefix: String = "--",
95+
shortPrefix: String = "-",
96+
multiAllowed: Bool = false,
97+
stopToken: String? = "--",
98+
parsed: OnValueParsed<String>? = nil) {
9999
super.init(longName: longName,
100100
shortName: shortName,
101101
description: description,
@@ -170,6 +170,7 @@ public class DoubleOption: OptionParser<Double> {
170170
throw OptionParseError.valueNotDoubleConvertible(option: self, atIndex: i, value: value)
171171
}
172172
}
173+
173174
public override var debugDescription: String {
174175
return "\(String(describing: DoubleOption.self))(\(aliases))"
175176
}

0 commit comments

Comments
 (0)