Trait

org.rogach.scallop

DefaultConverters

Related Doc: package scallop

Permalink

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

Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

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

    Permalink
  6. implicit val bigIntConverter: ValueConverter[BigInt]

    Permalink
  7. implicit val byteConverter: ValueConverter[Byte]

    Permalink
  8. implicit val byteListConverter: ValueConverter[List[Byte]]

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

    Permalink
  10. implicit val charConverter: ValueConverter[Char]

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

    Permalink
  12. def clone(): AnyRef

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

    Permalink
  14. implicit val doubleListConverter: ValueConverter[List[Double]]

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

    Permalink
  16. implicit val durationConverter: ValueConverter[Duration]

    Permalink
  17. final def eq(arg0: AnyRef): Boolean

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

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

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

    Permalink
  21. implicit val flagConverter: ValueConverter[Boolean]

    Permalink
  22. implicit val floatConverter: ValueConverter[Float]

    Permalink
  23. implicit val floatListConverter: ValueConverter[List[Float]]

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

    Permalink
  25. final def getClass(): Class[_]

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

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

    Permalink
  28. implicit val intListConverter: ValueConverter[List[Int]]

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

    Permalink
  30. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  31. def listArgConverter[A](conv: (String) ⇒ A): ValueConverter[List[A]]

    Permalink

    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]

    Permalink
  33. implicit val longListConverter: ValueConverter[List[Long]]

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

    Permalink
  35. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  36. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  37. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  38. def numberHandler[T](name: String): PartialFunction[Throwable, Either[String, Option[T]]]

    Permalink

    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]

    Permalink

    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]]

    Permalink

    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]

    Permalink
  42. implicit val shortListConverter: ValueConverter[List[Short]]

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

    Permalink
  44. def singleArgConverter[A](conv: (String) ⇒ A, handler: PartialFunction[Throwable, Either[String, Option[A]]] = PartialFunction.empty): ValueConverter[A]

    Permalink

    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]

    Permalink
  46. implicit val stringListConverter: ValueConverter[List[String]]

    Permalink
  47. implicit val stringPropsConverter: ValueConverter[Map[String, String]]

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

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

    Permalink

    Converter for a tally option, used in ScallopConf.tally

  50. def toString(): String

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped