Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Convenient command line parsing for Scala
Scala
Pull request Compare This branch is 4 commits ahead, 9 commits behind eengbrec:scala210-apachecli.

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
project
src
.gitignore
LICENSE
README
build.sbt

README

Comment out "parallelExecution in Test := false " in build.sbt, then run the tests you should see non-deterministic failures. Just run test repeatedly and watch.

*************

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.