scopt

OptionDef

class OptionDef[A, C] extends AnyRef

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. OptionDef
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new OptionDef(kind: OptionDefKind, name: String)(implicit arg0: Read[A])

  2. new OptionDef(kind: OptionDefKind, name: String, defCallback: OptionDefCallback[C])(implicit arg0: Read[A])

  3. new OptionDef(_id: Int, _kind: OptionDefKind, _name: String, _shortOpt: Option[String], _keyName: Option[String], _valueName: Option[String], _desc: String, _action: (A, C) ⇒ C, _validations: Seq[(A) ⇒ Either[String, Unit]], _configValidations: Seq[(C) ⇒ Either[String, Unit]], _parentId: Option[Int], _minOccurs: Int, _maxOccurs: Int, _isHidden: Boolean, _fallback: Option[() ⇒ A], _defCallback: OptionDefCallback[C])(implicit arg0: Read[A])

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. def abbr(x: String): OptionDef[A, C]

    Adds short option -x.

  7. def action(f: (A, C) ⇒ C): OptionDef[A, C]

    Adds a callback function.

  8. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. def children(xs: OptionDef[_, C]*): OptionDef[A, C]

    Adds opt/arg under this command.

  10. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. def desc: String

  12. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  13. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  14. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. def foreach(f: (A) ⇒ Unit): OptionDef[A, C]

    Adds a callback function.

  16. def fullName: String

  17. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  18. def getFallback: A

  19. def getMaxOccurs: Int

  20. def getMinOccurs: Int

  21. def hasFallback: Boolean

  22. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  23. def hidden(): OptionDef[A, C]

    Hides the option in any usage text.

  24. def isHidden: Boolean

  25. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  26. def keyName(x: String): OptionDef[A, C]

    Adds key name used in the usage text.

  27. def keyValueName(k: String, v: String): OptionDef[A, C]

    Adds key and value names used in the usage text.

  28. def maxOccurs(n: Int): OptionDef[A, C]

    Allows the argument to appear at most n times.

  29. def minOccurs(n: Int): OptionDef[A, C]

    Requires the option to appear at least n times.

  30. val name: String

  31. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  32. final def notify(): Unit

    Definition Classes
    AnyRef
  33. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  34. def optional(): OptionDef[A, C]

    Changes the option to be optional.

  35. def required(): OptionDef[A, C]

    Requires the option to appear at least once.

  36. def shortDescription: String

  37. def shortOpt: Option[String]

  38. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  39. def text(x: String): OptionDef[A, C]

    Adds description in the usage text.

  40. def toString(): String

    Definition Classes
    OptionDef → AnyRef → Any
  41. def unbounded(): OptionDef[A, C]

    Allows the argument to appear multiple times.

  42. def validate(f: (A) ⇒ Either[String, Unit]): OptionDef[A, C]

    Adds custom validation.

  43. def valueName: Option[String]

  44. def valueName(x: String): OptionDef[A, C]

    Adds value name used in the usage text.

  45. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  46. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  47. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  48. def withFallback(to: () ⇒ A): OptionDef[A, C]

    provides a default to fallback to, e.

    provides a default to fallback to, e.g. for System.getenv

Inherited from AnyRef

Inherited from Any

Ungrouped