File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -155,7 +155,7 @@ open class Options<T : ArgumentConvertible> : ArgumentDescriptor {
155155}
156156
157157
158- open class VaradicOption < T : ArgumentConvertible > : ArgumentDescriptor {
158+ open class VariadicOption < T : ArgumentConvertible > : ArgumentDescriptor {
159159 public typealias ValueType = [ T ]
160160
161161 open let name : String
Original file line number Diff line number Diff line change @@ -90,15 +90,15 @@ public func testArgumentParser() {
9090
9191 $0. describe ( " variadic options " ) {
9292 $0. it ( " should return arguments for option " ) {
93- let option = VaradicOption < String > ( " varOption " )
93+ let option = VariadicOption < String > ( " varOption " )
9494 let values = try option. parse ( parser)
9595 try expect ( values. count) == 2
9696 try expect ( values. first) == " varValue1 "
9797 try expect ( values. last) == " varValue2 "
9898 }
9999
100100 $0. it ( " should return empty array when option is unknown " ) {
101- let option = VaradicOption < String > ( " unknown " )
101+ let option = VariadicOption < String > ( " unknown " )
102102 let values = try option. parse ( parser)
103103 try expect ( values. count) == 0
104104 }
You can’t perform that action at this time.
0 commit comments