Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tpunder/scala-optparse
Command line option parsing for scala
https://github.com/tpunder/scala-optparse
scala
Last synced: 1 day ago
JSON representation
Command line option parsing for scala
- Host: GitHub
- URL: https://github.com/tpunder/scala-optparse
- Owner: tpunder
- License: apache-2.0
- Created: 2011-02-09T18:36:40.000Z (almost 14 years ago)
- Default Branch: master
- Last Pushed: 2023-06-07T15:00:11.000Z (over 1 year ago)
- Last Synced: 2025-01-16T18:34:39.143Z (8 days ago)
- Topics: scala
- Language: Scala
- Homepage:
- Size: 313 KB
- Stars: 10
- Watchers: 3
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Scala OptParse
==============[![Build Status](https://github.com/frugalmechanic/scala-optparse/actions/workflows/build.yml/badge.svg)](https://github.com/frugalmechanic/scala-optparse/actions/workflows/build.yml) [![scala-optparse Scala version support](https://index.scala-lang.org/frugalmechanic/scala-optparse/scala-optparse/latest-by-scala-version.svg)](https://index.scala-lang.org/frugalmechanic/scala-optparse/scala-optparse)
Scala OptParse is a simple command line parsing library for Scala.
This was one of the first Scala libraries that I wrote (as you can probably tell
by looking at the code). It is still in production use today (as of Jan 2022)
although no longer at Frugal Mechanic (which no longer exists).Supported Scala Versions
------------------------- 2.10
- 2.11
- 2.12
- 2.13
- 3.xSBT Dependency
--------------
libraryDependencies += "com.frugalmechanic" %% "scala-optparse" % "1.2.0"Example Usage
-------------```scala
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](http://frugalmechanic.com)
License
-------[Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0.txt)