← ZIO Cli docs

Args

zio.cli.Args
See theArgs companion object
sealed trait Args[+A]

A Args represents arguments that can be passed to a command-line application.

Attributes

Companion
object
Source
Args.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Both[A, B]
object Empty
class Map[A, B]
class Single[A]
class Variadic[A]
Self type
Args[A]

Members list

Value members

Abstract methods

def ??(that: String): Args[A]

Attributes

Source
Args.scala

Attributes

Source
Args.scala
def maxSize: Int

Attributes

Source
Args.scala
def minSize: Int

Attributes

Source
Args.scala

Attributes

Source
Args.scala
def uid: Option[String]

Attributes

Source
Args.scala
def validate(args: List[String], conf: CliConfig): IO[ValidationError, (List[String], A)]

Attributes

Source
Args.scala

Concrete methods

final def *: Args[List[A]]

Attributes

Source
Args.scala
final def +[A1 >: A]: Args[::[A1]]

Attributes

Source
Args.scala
final def ++[B](that: Args[B])(implicit zippable: Zippable[A, B]): Args[zippable.Out]

Attributes

Source
Args.scala
final def atLeast(min: Int): Args[List[A]]

Attributes

Source
Args.scala
final def atMost(max: Int): Args[List[A]]

Attributes

Source
Args.scala
final def between(min: Int, max: Int): Args[List[A]]

Attributes

Source
Args.scala
final def map[B](f: A => B): Args[B]

Attributes

Source
Args.scala
final def mapOrFail[B](f: A => Either[HelpDoc, B]): Args[B]

Attributes

Source
Args.scala
final def mapTry[B](f: A => B): Args[B]

Attributes

Source
Args.scala
final def repeat: Args[List[A]]

Attributes

Source
Args.scala
final def repeat1[A1 >: A]: Args[::[A1]]

Attributes

Source
Args.scala

Inherited methods

Attributes

Inherited from:
Parameter (hidden)
Source
Parameter.scala

Concrete fields

lazy val tag: String

Attributes

Source
Args.scala