WithHelp

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

Companion:
object
trait Product
trait Equals
class Object
trait Matchable
class Any

Value members

Concrete methods

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

Inherited methods

Inherited from:
Product