Scala command line FAQ: How do I read command line arguments (args) in a Scala shell script?
If your Scala shell script is very short, and you're not using an object or class declaration -- i.e., you have no main method -- you can access the script's command line arguments through the default args array, which is made available to you by Scala.
For instance, you can create a one-line Scala script named hello.scala like this: