Skip to content

teamon/optparse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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
}

About

Scala type safe command line options parser built using

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages