Popularity
6.4
Growing
Activity
7.7
Declining
526
10
56
Programming language: Scala
License: Apache License 2.0
Tags:
Parsing
Latest version: v1.3.0
decline alternatives and similar packages
Based on the "Parsing" category.
Alternatively, view decline alternatives based on common mentions on social networks and blogs.
-
Kaitai Struct
Kaitai Struct: declarative language to generate binary data parsers in C++ / C# / Go / Java / JavaScript / Lua / Perl / PHP / Python / Ruby -
Scala Parser Combinators
simple combinator-based parsing for Scala. formerly part of the Scala standard library, now a separate community-maintained module
Less time debugging, more time building
Scout APM allows you to find and fix performance issues with no hassle. Now with error monitoring and external services monitoring, Scout is a developer's best friend when it comes to application development.
Promo
scoutapm.com
Do you think we are missing an alternative of decline or a related project?
README
decline
A composable command-line parser, inspired by optparse-applicative
and built on cats
.
import cats.implicits._
import com.monovore.decline._
object HelloWorld extends CommandApp(
name = "hello-world",
header = "Says hello!",
main = {
val userOpt =
Opts.option[String]("target", help = "Person to greet.")
.withDefault("world")
val quietOpt = Opts.flag("quiet", help = "Whether to be quiet.").orFalse
(userOpt, quietOpt).mapN { (user, quiet) =>
if (quiet) println("...")
else println(s"Hello $user!")
}
}
)
To get started, please visit monovore.com/decline!
About the Project
decline
is a Typelevel Incubator project,
and follows the Scala Code of Conduct.
This project is released under the Apache License 2.0.
*Note that all licence references and agreements mentioned in the decline README section above
are relevant to that project's source code only.