frugalmechanic / scala-optparse

Command line option parsing for scala

Website GitHub

Scala OptParse

Build Status

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

License

Apache License, Version 2.0

Links