We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 11e9242 commit 231d8aeCopy full SHA for 231d8ae
Sources/parsers/Option.swift
@@ -131,7 +131,7 @@ public class IntOption: OptionParser<Int> {
131
multiAllowed: multiAllowed,
132
stopToken: stopToken,
133
parsed: parsed)
134
- valueConverter = { value, i in
+ valueConverter = { [unowned self] value, i in
135
if let value = Int(value) {
136
return value
137
}
@@ -162,7 +162,7 @@ public class DoubleOption: OptionParser<Double> {
162
163
164
165
166
if let value = Double(value) {
167
168
0 commit comments