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
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]
def maxSize: Int
def minSize: Int
def uid: Option[String]
def validate(args: List[String], conf: CliConfig): IO[ValidationError, (List[String], A)]

Concrete methods

final def *: Args[List[A]]
final def +[A1 >: A]: Args[::[A1]]
final def ++[B](that: Args[B])(implicit zippable: Zippable[A, B]): Args[zippable.Out]
final def atLeast(min: Int): Args[List[A]]
final def atMost(max: Int): Args[List[A]]
final def between(min: Int, max: Int): Args[List[A]]
final def map[B](f: A => B): Args[B]
final def mapOrFail[B](f: A => Either[HelpDoc, B]): Args[B]
final def mapTry[B](f: A => B): Args[B]
final def repeat: Args[List[A]]
final def repeat1[A1 >: A]: Args[::[A1]]

Inherited methods

Attributes

Inherited from:
Parameter (hidden)

Concrete fields

lazy val tag: String