t

org.rogach.scallop

DefaultConverters

trait DefaultConverters extends AnyRef

This trait contains various predefined converters for common use-cases. org.rogach.scallop package object inherits from this trait, thus you can get all the converters simply by importing org.rogach.scallop._.

Source
DefaultConverters.scala
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DefaultConverters
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. implicit val bigDecimalConverter: ValueConverter[BigDecimal]
  6. implicit val bigIntConverter: ValueConverter[BigInt]
  7. implicit val byteConverter: ValueConverter[Byte]
  8. implicit val byteListConverter: ValueConverter[List[Byte]]
  9. implicit val bytePropsConverter: ValueConverter[Map[String, Byte]]
  10. implicit val charConverter: ValueConverter[Char]
  11. implicit val charPropsConverter: ValueConverter[Map[String, Char]]
  12. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  13. implicit val doubleConverter: ValueConverter[Double]
  14. implicit val doubleListConverter: ValueConverter[List[Double]]
  15. implicit val doublePropsConverter: ValueConverter[Map[String, Double]]
  16. implicit val durationConverter: ValueConverter[Duration]
  17. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  19. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  20. implicit val finiteDurationConverter: ValueConverter[FiniteDuration]
  21. implicit val flagConverter: ValueConverter[Boolean]
  22. implicit val floatConverter: ValueConverter[Float]
  23. implicit val floatListConverter: ValueConverter[List[Float]]
  24. implicit val floatPropsConverter: ValueConverter[Map[String, Float]]
  25. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  26. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  27. implicit val intConverter: ValueConverter[Int]
  28. implicit val intListConverter: ValueConverter[List[Int]]
  29. implicit val intPropsConverter: ValueConverter[Map[String, Int]]
  30. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  31. def listArgConverter[A](conv: (String) => A): ValueConverter[List[A]]

    Creates a converter for an option which accepts multiple arguments.

    Creates a converter for an option which accepts multiple arguments.

    conv

    The conversion function to use on each argument. May throw an exception on error.

    returns

    A ValueConverter instance.

  32. implicit val longConverter: ValueConverter[Long]
  33. implicit val longListConverter: ValueConverter[List[Long]]
  34. implicit val longPropsConverter: ValueConverter[Map[String, Long]]
  35. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  36. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  37. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  38. def numberHandler[T](name: String): PartialFunction[Throwable, Either[String, Option[T]]]

    Handler function for numeric types which expects a NumberFormatException and prints a more helpful error message.

    Handler function for numeric types which expects a NumberFormatException and prints a more helpful error message.

    name

    the type name to display

  39. def optDefault[A](default: A)(implicit conv: ValueConverter[A]): ValueConverter[A]

    Creates a converter for an option with single optional argument (it will parse both --opt and --opt arg command lines).

    Creates a converter for an option with single optional argument (it will parse both --opt and --opt arg command lines).

    default

    The default value to use if argument wasn't provided.

    conv

    Converter instance to use if argument was provided.

    returns

    A ValueConverter instance.

  40. def propsConverter[A](conv: ValueConverter[A]): ValueConverter[Map[String, A]]

    Creates a converter for a property option.

    Creates a converter for a property option.

    conv

    The converter function to use on each value. May throw an exception on error.

    returns

    A ValueConverter instance.

  41. implicit val shortConverter: ValueConverter[Short]
  42. implicit val shortListConverter: ValueConverter[List[Short]]
  43. implicit val shortPropsConverter: ValueConverter[Map[String, Short]]
  44. def singleArgConverter[A](conv: (String) => A, handler: PartialFunction[Throwable, Either[String, Option[A]]] = PartialFunction.empty): ValueConverter[A]

    Creates a converter for an option with a single argument.

    Creates a converter for an option with a single argument.

    conv

    The conversion function to use. May throw an exception on error.

    handler

    An error handler function for writing custom error messages.

    returns

    A ValueConverter instance.

  45. implicit val stringConverter: ValueConverter[String]
  46. implicit val stringListConverter: ValueConverter[List[String]]
  47. implicit val stringPropsConverter: ValueConverter[Map[String, String]]
  48. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  49. val tallyConverter: ValueConverter[Int] { val argType: org.rogach.scallop.ArgType.FLAG.type }

    Converter for a tally option, used in ScallopConf.tally

  50. def toString(): String
    Definition Classes
    AnyRef → Any
  51. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  52. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  53. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from AnyRef

Inherited from Any

Ungrouped