8000 GitHub - cllu/docopt.scala: Scala implementation of docopt language
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

cllu/docopt.scala

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docopt2

docopt language definition can be found on the official webpage.

Build Status

Usage

object Main {
  val doc =
    """Usage:
      |  Main [--force] EXPR
    """.stripMargin

  def main(_args: Array[String]) {
    val args = Docopt(doc, _args)

    val experimentFolder = opt.getString("EXPR").get
    val force = args.getBoolean("--force", false)
  }
}

Installation

The library is published to my own maven repo, add the following to your sbt build file:

resolvers += "Chunliang's Maven Repository" at "https://repo.chunlianglyu.com"
libraryDependencies += "com.chunlianglyu.docopt2" %% "docopt2" % "0.2"

Tests Coverage

Currently 75/81 docopt tests are passed.

About

Scala implementation of docopt language

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Scala 97.2%
  • Python 2.0%
  • Shell 0.8%
0