Scala OptParse
Scala OptParse is a simple command line parsing library for Scala
SBT Dependency
libraryDependencies += "com.frugalmechanic" %% "scala-optparse" % "1.1.3"
Example Usage
import com.frugalmechanic.optparse._
object HelloWorldApp extends OptParse {
val name = StrOpt()
def main(args:Array[String]) {
parse(args)
println("Hello "+name.getOrElse("world"))
}
}
Authors
Tim Underwood (GitHub, LinkedIn, Twitter)
Copyright
Copyright Frugal Mechanic