com.frugalmechanic.optparse

IntOpt

class IntOpt extends ArgOpt[Int] with SingleOpt[Int]

IntOpt has the same usage as com.frugalmechanic.optparse.StrOpt except it returns a Int instead of a String

Linear Supertypes
SingleOpt[Int], ArgOpt[Int], OptVal[Int], Opt, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. IntOpt
  2. SingleOpt
  3. ArgOpt
  4. OptVal
  5. Opt
  6. AnyRef
  7. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new IntOpt(long: Option[String], short: Option[Char], default: Option[Int], desc: String, enables: Seq[BoolOpt], disables: Seq[BoolOpt], invalidWith: Seq[Opt], validWith: Seq[Opt], exclusive: Boolean, validate: (Int) ⇒ Boolean)

    long

    Long name for this option (--long_name on the command line)

    short

    Short name for this option (-short_name on the command line)

    default

    Default value for this option

    desc

    Description of the parameter (used in help message)

    enables

    Other flags that this option implicitly enables

    disables

    Other flags that this option implicitly disables

    validWith

    Other options that are required to be set when using this options

    exclusive

    Whether or not this option is exclusive and cannot be used with any other options (e.g. like --help where it prints the help message and exits)

    validate

    A method that takes the String value and returns a boolean indicating if the argument value is valid

Type Members

  1. type Elem = Int

    Definition Classes
    SingleOpt

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. var actualLong: Option[String]

    Attributes
    protected[com.frugalmechanic.optparse]
    Definition Classes
    Opt
  5. var actualShort: Option[Char]

    Attributes
    protected[com.frugalmechanic.optparse]
    Definition Classes
    Opt
  6. def apply(): Int

    Get the value

    Get the value

    This calls Option.get on the underlying value so an exception will be thrown if the value is not set.

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

    Definition Classes
    Any
  8. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. def default: Option[Int]

    The default value for this options

    The default value for this options

    Definition Classes
    OptVal
  10. def desc: String

    The description of this option which is used as part of the help message

    The description of this option which is used as part of the help message

    Definition Classes
    Opt
  11. def disables: Seq[BoolOpt]

    A list of boolean option that this option disables

    A list of boolean option that this option disables

    Definition Classes
    Opt
  12. def enables: Seq[BoolOpt]

    A List of boolean options that this option enables

    A List of boolean options that this option enables

    Definition Classes
    Opt
  13. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  15. def exclusive: Boolean

    Whether or not this command line options is exclusive and cannot be used with any other options (e.

    Whether or not this command line options is exclusive and cannot be used with any other options (e.g. a help options that prints the help message and then quits)

    Definition Classes
    Opt
  16. def finalize(): Unit

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

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

    Definition Classes
    AnyRef → Any
  19. def invalidWith: Seq[Opt]

    Other command line options that this option is invalid with

    Other command line options that this option is invalid with

    Definition Classes
    Opt
  20. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  21. def long: Option[String]

    The long form of this option (if any)

    The long form of this option (if any)

    (e.g. "myoption" would be called with "--myoption" on the command line)

    Definition Classes
    Opt
  22. var methodName: String

    Attributes
    protected[com.frugalmechanic.optparse]
    Definition Classes
    Opt
  23. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  26. def parseValue(v: String): Int

    Parses the string command line argument into an Int

    Parses the string command line argument into an Int

    Definition Classes
    IntOptArgOpt
  27. def reset: Unit

    Reset the value to the default

    Reset the value to the default

    Definition Classes
    OptValOpt
  28. def setValue(arg: String): Unit

    Definition Classes
    SingleOpt
  29. def short: Option[Char]

    The short form of this option (if any)

    The short form of this option (if any)

    (e.g. "a" would be called with "-a" on the command line)

    Definition Classes
    Opt
  30. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  31. def toString(): String

    Definition Classes
    AnyRef → Any
  32. def validWith: Seq[Opt]

    Other command line options that are required when this option is set

    Other command line options that are required when this option is set

    Definition Classes
    Opt
  33. def validate(value: Int): Boolean

    Validate the parsed value using the validate argument passed in on the constructor

    Validate the parsed value using the validate argument passed in on the constructor

    Definition Classes
    ArgOpt
  34. def value: Option[Int]

    The value attached to this command line option (wrapped in an Option)

    The value attached to this command line option (wrapped in an Option)

    Definition Classes
    OptVal
  35. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from SingleOpt[Int]

Inherited from ArgOpt[Int]

Inherited from OptVal[Int]

Inherited from Opt

Inherited from AnyRef

Inherited from Any

Ungrouped