Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Scala type safe command line options parser built using

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 .gitignore
Octocat-spinner-32 README.md
Octocat-spinner-32 build.sbt
Octocat-spinner-32 optparse.scala
README.md

Scala type safe command line options parser built using shapeless

Usage

import optparse.OptParse._

def main(args: Array[String]){
    val debug :: host :: port :: HNil = parse(
        flag("-d", "--debug") ::
        opt("-h", "--host", "localhost") ::
        opt("-p", "--port", 80) ::
        HNil
    )(args)

    // debug: Boolean
    // host: String
    // port: Int
}
Something went wrong with that request. Please try again.