Simple Command Line Parsing for Scala

OptParse provides simple command line parsing for Scala that only requires a minimal amount of code.


  • 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]) {
    println("Hello "+name.getOrElse("world"))