com.frugalmechanic.optparse

FileOpt

class FileOpt extends ArgOpt[File] with SingleOpt[File]

FileOpt has the same usage as StrOpt except it returns a java.io.File instead of a String

Linear Supertypes
SingleOpt[File], ArgOpt[File], OptVal[File], Opt, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. FileOpt
  2. SingleOpt
  3. ArgOpt
  4. OptVal
  5. Opt
  6. AnyRef
  7. Any
Visibility
  1. Public
  2. All

Instance Constructors

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

Type Members

  1. type Elem = File

    Definition Classes
    SingleOpt

Value Members

  1. def != (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  2. def != (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  3. def ## (): Int

    Attributes
    final
    Definition Classes
    AnyRef → Any
  4. def == (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  5. def == (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  6. var actualLong : Option[String]

    Attributes
    protected[optparse]
    Definition Classes
    Opt
  7. var actualShort : Option[Char]

    Attributes
    protected[optparse]
    Definition Classes
    Opt
  8. def apply (): File

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

    Attributes
    final
    Definition Classes
    Any
  10. def clone (): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  11. def eq (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  12. def equals (arg0: Any): Boolean

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

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

    Attributes
    final
    Definition Classes
    AnyRef → Any
  15. def hashCode (): Int

    Definition Classes
    AnyRef → Any
  16. def isInstanceOf [T0] : Boolean

    Attributes
    final
    Definition Classes
    Any
  17. var methodName : String

    Attributes
    protected[optparse]
    Definition Classes
    Opt
  18. def ne (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  19. def notify (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  20. def notifyAll (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  21. def parseValue (v: String): File

    Specifies how to parse the string from the command line argument into a value of type T

    Specifies how to parse the string from the command line argument into a value of type T

    Definition Classes
    FileOpt → ArgOpt
  22. def reset : Unit

    Reset the value to the default

    Reset the value to the default

    Definition Classes
    OptVal → Opt
  23. def setValue (arg: String): Unit

    Definition Classes
    SingleOpt
  24. def synchronized [T0] (arg0: ⇒ T0): T0

    Attributes
    final
    Definition Classes
    AnyRef
  25. def toString (): String

    Definition Classes
    AnyRef → Any
  26. def validate (value: File): 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
  27. def value : Option[File]

    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
  28. def wait (): Unit

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

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

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from SingleOpt[File]

Inherited from ArgOpt[File]

Inherited from OptVal[File]

Inherited from Opt

Inherited from AnyRef

Inherited from Any