WithHelp

caseapp.core.help.WithHelp
See theWithHelp companion object
final case class WithHelp[+T](usage: Boolean, help: Boolean, baseOrError: Either[Error, T])

Helper to add --usage and --help options to an existing type T.

Type parameters

T:

type to which usage and help options are added

Value parameters

baseOrError:

parsed T in case of success, or error message else

help:

whether help was requested

usage:

whether usage was requested

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def map[U](f: T => U): WithHelp[U]

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product