{"id":13682778,"url":"https://github.com/bkirwi/decline","last_synced_at":"2026-01-11T16:55:31.564Z","repository":{"id":12351190,"uuid":"71673334","full_name":"bkirwi/decline","owner":"bkirwi","description":"A composable command-line parser for Scala.","archived":false,"fork":false,"pushed_at":"2024-07-29T10:44:20.000Z","size":2908,"stargazers_count":641,"open_issues_count":39,"forks_count":70,"subscribers_count":8,"default_branch":"main","last_synced_at":"2024-08-02T13:34:31.217Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://monovore.com/decline/","language":"Scala","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bkirwi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-10-23T00:30:19.000Z","updated_at":"2024-07-16T03:41:38.000Z","dependencies_parsed_at":"2024-08-02T13:22:49.983Z","dependency_job_id":"9e352666-d3b7-44bc-a678-4e2c1d4d912c","html_url":"https://github.com/bkirwi/decline","commit_stats":null,"previous_names":[],"tags_count":29,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bkirwi%2Fdecline","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bkirwi%2Fdecline/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bkirwi%2Fdecline/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bkirwi%2Fdecline/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bkirwi","download_url":"https://codeload.github.com/bkirwi/decline/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224206211,"owners_count":17273408,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-02T13:01:53.049Z","updated_at":"2026-01-11T16:55:31.524Z","avatar_url":"https://github.com/bkirwi.png","language":"Scala","readme":"# decline\n\n[![Build Status](https://img.shields.io/github/actions/workflow/status/bkirwi/decline/ci.yml?branch=main)](https://github.com/bkirwi/decline/actions)\n[![Discord](https://img.shields.io/discord/632277896739946517.svg?label=\u0026logo=discord\u0026logoColor=ffffff\u0026color=404244\u0026labelColor=6A7EC2)](https://discord.com/channels/632277896739946517/895394320100761731)\n[![Typelevel library](https://img.shields.io/badge/typelevel-library-green.svg)](https://typelevel.org/projects#decline)\n[![decline Scala version support](https://index.scala-lang.org/bkirwi/decline/decline/latest-by-scala-version.svg?platform=jvm)](https://index.scala-lang.org/bkirwi/decline/decline)\n\nA composable command-line parser, inspired by [`optparse-applicative`][optparse]\nand built on [`cats`][cats].\n\n```scala\nimport cats.syntax.all._\nimport com.monovore.decline._\n\nobject HelloWorld extends CommandApp(\n  name = \"hello-world\",\n  header = \"Says hello!\",\n  main = {\n    val userOpt =\n      Opts.option[String](\"target\", help = \"Person to greet.\")\n        .withDefault(\"world\")\n\n    val quietOpt = Opts.flag(\"quiet\", help = \"Whether to be quiet.\").orFalse\n\n    (userOpt, quietOpt).mapN { (user, quiet) =\u003e \n\n      if (quiet) println(\"...\")\n      else println(s\"Hello $user!\")\n    }\n  }\n)\n```\n\n**To get started, please visit [monovore.com/decline](http://monovore.com/decline/)!**\n\n## About the Project\n\n`decline` is a [Typelevel](https://typelevel.org/projects/) project,\nand follows the [Typelevel Scala Code of Conduct](https://typelevel.org/code-of-conduct).\n\nThis project is released under the [Apache License 2.0](http://www.apache.org/licenses/LICENSE-2.0).\n\n[optparse]: https://github.com/pcapriotti/optparse-applicative\n[cats]: https://github.com/typelevel/cats\n[decline]: http://ben.kirw.in/decline/\n","funding_links":[],"categories":["Scala","Console","Table of Contents","Parsing"],"sub_categories":["Command Line Interfaces"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbkirwi%2Fdecline","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbkirwi%2Fdecline","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbkirwi%2Fdecline/lists"}