@@ -106,27 +106,27 @@ extension Group {
106106 // MARK: Argument Description Commands
107107
108108 /// Add a command which takes one argument using a closure
109- public func command< A: ArgumentDescriptor > ( name: String , a: A , closure: ( A . ValueType ) -> ( ) ) {
109+ public func command< A: ArgumentDescriptor > ( name: String , _ a: A , closure: ( A . ValueType ) -> ( ) ) {
110110 addCommand ( name, Commander . command ( a, closure: closure) )
111111 }
112112
113113 /// Add a command which takes two argument using a closure
114- public func command< A: ArgumentDescriptor , B: ArgumentDescriptor > ( name: String , a: A , b: B , closure: ( A . ValueType , B . ValueType ) -> ( ) ) {
114+ public func command< A: ArgumentDescriptor , B: ArgumentDescriptor > ( name: String , _ a: A , _ b: B , closure: ( A . ValueType , B . ValueType ) -> ( ) ) {
115115 addCommand ( name, Commander . command ( a, b, closure: closure) )
116116 }
117117
118118 /// Add a command which takes three argument using a closure
119- public func command< A: ArgumentDescriptor , B: ArgumentDescriptor , C: ArgumentDescriptor > ( name: String , a: A , b: B , c: C , closure: ( A . ValueType , B . ValueType , C . ValueType ) -> ( ) ) {
119+ public func command< A: ArgumentDescriptor , B: ArgumentDescriptor , C: ArgumentDescriptor > ( name: String , _ a: A , _ b: B , _ c: C , closure: ( A . ValueType , B . ValueType , C . ValueType ) -> ( ) ) {
120120 addCommand ( name, Commander . command ( a, b, c, closure: closure) )
121121 }
122122
123123 /// Add a command which takes four argument using a closure
124- public func command< A: ArgumentDescriptor , B: ArgumentDescriptor , C: ArgumentDescriptor , D: ArgumentDescriptor > ( name: String , a: A , b: B , c: C , d: D , closure: ( A . ValueType , B . ValueType , C . ValueType , D . ValueType ) -> ( ) ) {
124+ public func command< A: ArgumentDescriptor , B: ArgumentDescriptor , C: ArgumentDescriptor , D: ArgumentDescriptor > ( name: String , _ a: A , _ b: B , _ c: C , _ d: D , closure: ( A . ValueType , B . ValueType , C . ValueType , D . ValueType ) -> ( ) ) {
125125 addCommand ( name, Commander . command ( a, b, c, d, closure: closure) )
126126 }
127127
128128 /// Add a command which takes five argument using a closure
129- public func command< A: ArgumentDescriptor , B: ArgumentDescriptor , C: ArgumentDescriptor , D: ArgumentDescriptor , E: ArgumentDescriptor > ( name: String , a: A , b: B , c: C , d: D , e: E , closure: ( A . ValueType , B . ValueType , C . ValueType , D . ValueType , E . ValueType ) -> ( ) ) {
129+ public func command< A: ArgumentDescriptor , B: ArgumentDescriptor , C: ArgumentDescriptor , D: ArgumentDescriptor , E: ArgumentDescriptor > ( name: String , _ a: A , _ b: B , _ c: C , _ d: D , _ e: E , closure: ( A . ValueType , B . ValueType , C . ValueType , D . ValueType , E . ValueType ) -> ( ) ) {
130130 addCommand ( name, Commander . command ( a, b, c, d, e, closure: closure) )
131131 }
132132}
0 commit comments