Command line option parsing for scala
Scala
Latest commit 3172d8e Jan 20, 2017 @tpunder tpunder Upgrade to Scala 2.12.1

README.md

Scala OptParse

Build Status

Scala OptParse is a simple command line parsing library for Scala

SBT Dependency

libraryDependencies += "com.frugalmechanic" %% "scala-optparse" % "1.1.2"

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, Google Plus)

Copyright

Copyright Frugal Mechanic

License

Apache License, Version 2.0

Links