When using new main function syntax:
@main def prog(nb: Int, stuff: String) = ...
vs old one :
def main(args: Array[String]) = ...
Is it possible to check the number of arguments passed on the command line? Something we can do with a test on args.length in old syntax.
I would like to produce a customized syntax error instead of "Illegal command line: more arguments expected".