@@ -234,72 +234,3 @@ class Help : ErrorType, CustomStringConvertible {
234234 return output. joinWithSeparator ( " \n " )
235235 }
236236}
237-
238-
239- public func command< A : ArgumentDescriptor > ( descriptor: A , closure: ( ( A . ValueType ) -> ( ) ) ) -> CommandType {
240- return AnonymousCommand { parser in
241- if parser. hasOption ( " help " ) {
242- throw Help ( [ BoxedArgumentDescriptor ( value: descriptor) ] )
243- }
244-
245- closure ( try descriptor. parse ( parser) )
246- }
247- }
248-
249- public func command< A: ArgumentDescriptor , B: ArgumentDescriptor > ( descriptorA: A , _ descriptorB: B , closure: ( ( A . ValueType , B . ValueType ) -> ( ) ) ) -> CommandType {
250- return AnonymousCommand { parser in
251- if parser. hasOption ( " help " ) {
252- throw Help ( [
253- BoxedArgumentDescriptor ( value: descriptorA) ,
254- BoxedArgumentDescriptor ( value: descriptorB) ,
255- ] )
256- }
257-
258- closure ( try descriptorA. parse ( parser) , try descriptorB. parse ( parser) )
259- }
260- }
261-
262- public func command< A: ArgumentDescriptor , B: ArgumentDescriptor , C: ArgumentDescriptor > ( descriptorA: A , _ descriptorB: B , _ descriptorC: C , closure: ( ( A . ValueType , B . ValueType , C . ValueType ) -> ( ) ) ) -> CommandType {
263- return AnonymousCommand { parser in
264- if parser. hasOption ( " help " ) {
265- throw Help ( [
266- BoxedArgumentDescriptor ( value: descriptorA) ,
267- BoxedArgumentDescriptor ( value: descriptorB) ,
268- BoxedArgumentDescriptor ( value: descriptorC) ,
269- ] )
270- }
271-
272- closure ( try descriptorA. parse ( parser) , try descriptorB. parse ( parser) , try descriptorC. parse ( parser) )
273- }
274- }
275-
276- public func command< A: ArgumentDescriptor , B: ArgumentDescriptor , C: ArgumentDescriptor , D: ArgumentDescriptor > ( a: A , _ b: B , _ c: C , _ d: D , closure: ( ( A . ValueType , B . ValueType , C . ValueType , D . ValueType ) -> ( ) ) ) -> CommandType {
277- return AnonymousCommand { parser in
278- if parser. hasOption ( " help " ) {
279- throw Help ( [
280- BoxedArgumentDescriptor ( value: a) ,
281- BoxedArgumentDescriptor ( value: b) ,
282- BoxedArgumentDescriptor ( value: c) ,
283- BoxedArgumentDescriptor ( value: d) ,
284- ] )
285- }
286-
287- closure ( try a. parse ( parser) , try b. parse ( parser) , try c. parse ( parser) , try d. parse ( parser) )
288- }
289- }
290-
291- public func command< A: ArgumentDescriptor , B: ArgumentDescriptor , C: ArgumentDescriptor , D: ArgumentDescriptor , E: ArgumentDescriptor > ( a: A , _ b: B , _ c: C , _ d: D , _ e: E , closure: ( ( A . ValueType , B . ValueType , C . ValueType , D . ValueType , E . ValueType ) -> ( ) ) ) -> CommandType {
292- return AnonymousCommand { parser in
293- if parser. hasOption ( " help " ) {
294- throw Help ( [
295- BoxedArgumentDescriptor ( value: a) ,
296- BoxedArgumentDescriptor ( value: b) ,
297- BoxedArgumentDescriptor ( value: c) ,
298- BoxedArgumentDescriptor ( value: d) ,
299- BoxedArgumentDescriptor ( value: e) ,
300- ] )
301- }
302-
303- closure ( try a. parse ( parser) , try b. parse ( parser) , try c. parse ( parser) , try d. parse ( parser) , try e. parse ( parser) )
304- }
305- }
0 commit comments