scala-optparse

Command line option parsing for Scala

License

License

Categories

Categories

Scala Languages
GroupId

GroupId

com.frugalmechanic
ArtifactId

ArtifactId

scala-optparse
Last Version

Last Version

1.1
Release Date

Release Date

Type

Type

jar
Description

Description

scala-optparse
Command line option parsing for Scala
Project Organization

Project Organization

Frugal Mechanic
Source Code Management

Source Code Management

https://github.com/frugalmechanic/scala-optparse

Download scala-optparse

How to add to project

<!-- https://jarcasting.com/artifacts/com.frugalmechanic/scala-optparse/ -->
<dependency>
    <groupId>com.frugalmechanic</groupId>
    <artifactId>scala-optparse</artifactId>
    <version>1.1</version>
</dependency>
// https://jarcasting.com/artifacts/com.frugalmechanic/scala-optparse/
implementation 'com.frugalmechanic:scala-optparse:1.1'
// https://jarcasting.com/artifacts/com.frugalmechanic/scala-optparse/
implementation ("com.frugalmechanic:scala-optparse:1.1")
'com.frugalmechanic:scala-optparse:jar:1.1'
<dependency org="com.frugalmechanic" name="scala-optparse" rev="1.1">
  <artifact name="scala-optparse" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.frugalmechanic', module='scala-optparse', version='1.1')
)
libraryDependencies += "com.frugalmechanic" % "scala-optparse" % "1.1"
[com.frugalmechanic/scala-optparse "1.1"]

Dependencies

compile (1)

Group / Artifact Type Version
org.scala-lang : scala-library jar 2.9.1

test (2)

Group / Artifact Type Version
junit : junit jar 4.8.2
org.scalatest : scalatest_2.9.1 jar 1.6.1

Project Modules

There are no modules declared in this project.

Scala OptParse

Build Status

Scala OptParse is a simple command line parsing library for Scala

SBT Dependency

libraryDependencies += "com.frugalmechanic" %% "scala-optparse" % "1.1.3"

Example Usage

import com.frugalmechanic.optparse._

object HelloWorldApp extends OptParse {
  val name = StrOpt()

  def main(args:Array[String]) {
    parse(args)
    println("Hello "+name.getOrElse("world"))
  }
}

Authors

Tim Underwood (GitHub, LinkedIn, Twitter)

Copyright

Copyright Frugal Mechanic

License

Apache License, Version 2.0

Links

com.frugalmechanic

Frugal Mechanic

Versions

Version
1.1
1.0