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
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. DefaultConverters
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

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. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. implicit val bigDecimalConverter: ValueConverter[BigDecimal]

  8. implicit val bigIntConverter: ValueConverter[BigInt]

  9. implicit val byteConverter: ValueConverter[Byte]

  10. implicit val byteListConverter: ValueConverter[List[Byte]]

  11. implicit val bytePropsConverter: ValueConverter[Map[String, Byte]]

  12. implicit val charConverter: ValueConverter[Char]

  13. implicit val charPropsConverter: ValueConverter[Map[String, Char]]

  14. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  15. implicit val doubleConverter: ValueConverter[Double]

  16. implicit val doubleListConverter: ValueConverter[List[Double]]

  17. implicit val doublePropsConverter: ValueConverter[Map[String, Double]]

  18. implicit val durationConverter: ValueConverter[Duration]

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

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

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

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  22. implicit val finiteDurationConverter: ValueConverter[FiniteDuration]

  23. implicit val flagConverter: ValueConverter[Boolean]

  24. implicit val floatConverter: ValueConverter[Float]

  25. implicit val floatListConverter: ValueConverter[List[Float]]

  26. implicit val floatPropsConverter: ValueConverter[Map[String, Float]]

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

    Definition Classes
    AnyRef → Any
  28. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  29. implicit val intConverter: ValueConverter[Int]

  30. implicit val intListConverter: ValueConverter[List[Int]]

  31. implicit val intPropsConverter: ValueConverter[Map[String, Int]]

  32. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  33. 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.

  34. implicit val longConverter: ValueConverter[Long]

  35. implicit val longListConverter: ValueConverter[List[Long]]

  36. implicit val longPropsConverter: ValueConverter[Map[String, Long]]

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

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

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

    Definition Classes
    AnyRef
  40. 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

  41. 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.

  42. 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.

  43. implicit val shortConverter: ValueConverter[Short]

  44. implicit val shortListConverter: ValueConverter[List[Short]]

  45. implicit val shortPropsConverter: ValueConverter[Map[String, Short]]

  46. 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.

  47. implicit val stringConverter: ValueConverter[String]

  48. implicit val stringListConverter: ValueConverter[List[String]]

  49. implicit val stringPropsConverter: ValueConverter[Map[String, String]]

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

    Definition Classes
    AnyRef
  51. val tallyConverter: ValueConverter[Int] { val argType: org.rogach.scallop.ArgType.FLAG.type }

    Converter for a tally option, used in ScallopConf.

    Converter for a tally option, used in ScallopConf.tally

  52. def toString(): String

    Definition Classes
    AnyRef → Any
  53. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped