org.rogach.scallop

NumberArgOption

case class NumberArgOption(name: String, required: Boolean, descr: String, converter: ValueConverter[Long], validator: (Any) ⇒ Boolean, default: () ⇒ Option[Long], hidden: Boolean) extends CliOption with Product with Serializable

Descriptor for a number option (-1 or -3, like GNU tail for example).

name

Name for new definition, used for identification.

required

Is this trailing argument required?

descr

Description for this option, for help text.

converter

The converter for this option.

validator

The function that validates the parsed value.

default

If this argument is not required and not found in the argument list, use this value.

hidden

If set to true then this option will not be present in auto-generated help.

Source
CliOptions.scala
Linear Supertypes
Serializable, Serializable, Product, Equals, CliOption, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. NumberArgOption
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. CliOption
  7. AnyRef
  8. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new NumberArgOption(name: String, required: Boolean, descr: String, converter: ValueConverter[Long], validator: (Any) ⇒ Boolean, default: () ⇒ Option[Long], hidden: Boolean)

    name

    Name for new definition, used for identification.

    required

    Is this trailing argument required?

    descr

    Description for this option, for help text.

    converter

    The converter for this option.

    validator

    The function that validates the parsed value.

    default

    If this argument is not required and not found in the argument list, use this value.

    hidden

    If set to true then this option will not be present in auto-generated help.

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 argLine(sh: List[Char]): String

    The line that would be printed as definition of this arg in help output.

    The line that would be printed as definition of this arg in help output.

    Definition Classes
    NumberArgOptionCliOption
  7. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  8. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. val converter: ValueConverter[Long]

    The converter for this option.

    The converter for this option.

    Definition Classes
    NumberArgOptionCliOption
  10. val default: () ⇒ Option[Long]

    If this argument is not required and not found in the argument list, use this value.

    If this argument is not required and not found in the argument list, use this value.

    Definition Classes
    NumberArgOptionCliOption
  11. val descr: String

    Description for this option, for help text.

    Description for this option, for help text.

    Definition Classes
    NumberArgOptionCliOption
  12. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  13. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  15. def helpInfo(sh: List[Char]): List[HelpInfo]

    List of argument lines, descriptions to them, and optional default values.

    List of argument lines, descriptions to them, and optional default values.

    Definition Classes
    NumberArgOptionCliOption
  16. val hidden: Boolean

    If set to true then this option will not be present in auto-generated help.

    If set to true then this option will not be present in auto-generated help.

    Definition Classes
    NumberArgOptionCliOption
  17. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  18. def isPositional: Boolean

    True for trailing argument option type, false for everything else.

    True for trailing argument option type, false for everything else.

    Definition Classes
    NumberArgOptionCliOption
  19. def longNames: Nil.type

    Long names for this option.

    Long names for this option.

    Definition Classes
    NumberArgOptionCliOption
  20. val name: String

    Name for new definition, used for identification.

    Name for new definition, used for identification.

    Definition Classes
    NumberArgOptionCliOption
  21. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  24. val required: Boolean

    Is this trailing argument required?

    Is this trailing argument required?

    Definition Classes
    NumberArgOptionCliOption
  25. def requiredShortNames: Nil.type

    Short names that were explicitly set for this option.

    Short names that were explicitly set for this option.

    Definition Classes
    NumberArgOptionCliOption
  26. def shortNames: Nil.type

    Short names that are suggested by option implementation.

    Short names that are suggested by option implementation.

    Definition Classes
    NumberArgOptionCliOption
  27. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  28. def toString(): String

    Definition Classes
    NumberArgOption → AnyRef → Any
  29. val validator: (Any) ⇒ Boolean

    The function that validates the parsed value.

    The function that validates the parsed value.

    Definition Classes
    NumberArgOptionCliOption
  30. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from CliOption

Inherited from AnyRef

Inherited from Any

Ungrouped