You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/docs/reference/changed-features/main-functions.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -31,7 +31,7 @@ Happy 23rd Birthday, Lisa and Peter!
31
31
```
32
32
33
33
A `@main` annotated method can be written either at the top-level or in a statically accessible object. The name of the program is in each case the name of the method, without any object prefixes. The `@main` method can have an arbitrary number of parameters.
34
-
For each parameter type there must be an instance of the `scala.util.FromString` type class
34
+
For each parameter type there must be an instance of the `scala.util.CommandLineParser.FromString` type class
35
35
that is used to convert an argument string to the required parameter type.
36
36
The parameter list of a main method can end in a repeated parameter that then
37
37
takes all remaining arguments given on the command line.
0 commit comments