Simple Command Line Parsing for Scala
OptParse provides simple command line parsing for Scala that only requires a minimal amount of code.
Features
- Less Boilerplate
- Default option names based on val/var name
- Auto help message generation
- No external dependencies
Hello World Example
import com.frugalmechanic.optparse._
object HelloWorldApp extends OptParse {
val name = StrOpt()
def main(args:Array[String]) {
parse(args)
println("Hello "+name.getOrElse("world"))
}
}