Skip to content
forked from alexy/optional

Convenient command line parsing for Scala

License

Notifications You must be signed in to change notification settings

marmbrus/optional

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Convenient command line parsing for Scala

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Scala 100.0%