Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Convenient command line parsing for Scala

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 project
Octocat-spinner-32 src
Octocat-spinner-32 .gitignore
Octocat-spinner-32 LICENSE
Octocat-spinner-32 README
Octocat-spinner-32 mkCommand
Octocat-spinner-32 pom.xml
README
optional is a command line option parser and library.

YOU WRITE:

object MyAwesomeCommandLineTool extends optional.Application {
  // for instance...
  def main(count: Option[Int], file: Option[java.io.File], arg1: String) {
    [...]
  }
}

THEN YOU DO:

  scala MyAwesomeCommandLineTool --count 5 quux

AND YOUR MAIN METHOD WILL BE INVOKED SUCH THAT:

  count = Some(5)
  file = None
  arg1 = quux
  
See the example programs for many more features.

HOW IT WORKS:

  Reflection, man.

CREDITS:

  Idea and prototype implementation: DRMacIver.
   Fleshing out and awesomification: paulp.

Something went wrong with that request. Please try again.