Skip to content
项目

bkirwi/decline has 677 GitHub stars and 73 forks. GitHot measured 0 stars in 24 hours and -1 in 7 days. Last checked 2026-11-24 05:10 UTC. Last push 2026-04-08.

这些数字如何统计

实测星标增长

24小时
0
7天
-1
15天
正在收集历史
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

关于

A composable command-line parser for Scala.

开发工具

README.md

原文

decline

Build Status Discord Typelevel library decline Scala version support

A composable command-line parser, inspired by optparse-applicative and built on cats.

import cats.syntax.all._
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 project, and follows the Typelevel Scala Code of Conduct.

This project is released under the Apache License 2.0.

探索相关项目

加载中…