File tree 1 file changed +13
-3
lines changed
library/src/scala/annotation
1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -86,9 +86,19 @@ object MainAnnotation:
86
86
def run (program : () => Result ): Unit
87
87
end Command
88
88
89
- final class CommandInfo (val name : String , val documentation : String , val parameters : Seq [ParameterInfo ])
89
+ /** Information about the main method
90
+ *
91
+ * @param name The name of the main method
92
+ * @param documentation The documentation of the main method without the `@param` documentation (see ParameterInfo.documentaion)
93
+ * @param parameters Information about the parameters of the main method
94
+ */
95
+ final class CommandInfo (
96
+ val name : String ,
97
+ val documentation : String ,
98
+ val parameters : Seq [ParameterInfo ],
99
+ )
90
100
91
- /** ParameterInfo with a name, the type of the parameter and if it has a default
101
+ /** Information about a parameter of a main method
92
102
*
93
103
* @param name The name of the parameter
94
104
* @param typeName The name of the parameter's type
@@ -103,7 +113,7 @@ object MainAnnotation:
103
113
val hasDefault : Boolean ,
104
114
val isVarargs : Boolean ,
105
115
val documentation : String ,
106
- val annotations : Seq [ParameterAnnotation ]
116
+ val annotations : Seq [ParameterAnnotation ],
107
117
)
108
118
109
119
/** Marker trait for annotations that will be included in the ParameterInfo annotations. */
You can’t perform that action at this time.
0 commit comments