I'm using IntelliJ to write kotlin script. In order to make my script valid with IntelliJ inspections, I'm defining a standard main method. The problem is that when running my file from kscript, my main method is not run at all.
Is there a special action to run the main method from the command line ?