Open
Description
Is your feature request related to a problem? Please describe.
After #3479 (comment) we will detect single main class if it's the only thing contained in the script and invoke that.
Describe the solution you'd like
We should also allow user to define which main class to use if there is more that one for example:
object Main { def main(args: String): Unit = ??? }
object Main2 { def main(args: String): Unit = ??? }
Describe alternatives you've considered
Using .scala files is a very simple workaround