abstract class IOCaseApp[T] extends IOApp
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- IOCaseApp
- IOApp
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new IOCaseApp()(implicit parser0: core.parser.Parser[T], messages: Help[T])
Abstract Value Members
- abstract def run(options: T, remainingArgs: core.RemainingArgs): IO[ExitCode]
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- implicit def contextShift: ContextShift[IO]
- Attributes
- protected
- Definition Classes
- IOApp
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def error(message: Error): IO[ExitCode]
- def expandArgs(args: List[String]): List[String]
Arguments are expanded then parsed.
Arguments are expanded then parsed. By default, argument expansion is the identity function. Overriding this method allows plugging in an arbitrary argument expansion logic.
One such expansion logic involves replacing each argument of the form '@<file>' with the contents of that file where each line in the file becomes a distinct argument. To enable this behavior, override this method as shown below.
import caseapp.core.parser.PlatformArgsExpander override def expandArgs(args: List[String]): List[String] = PlatformArgsExpander.expand(args)
Example: - final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def helpAsked: IO[ExitCode]
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def main(args: Array[String]): Unit
- Definition Classes
- IOApp
- implicit val messages: Help[T]
- def nameFormatter: Formatter[Name]
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def parser: core.parser.Parser[T]
- implicit val parser0: core.parser.Parser[T]
- def println(x: String): IO[Unit]
- def run(args: List[String]): IO[ExitCode]
- Definition Classes
- IOCaseApp → IOApp
- def stopAtFirstUnrecognized: Boolean
Whether to stop parsing at the first unrecognized argument.
Whether to stop parsing at the first unrecognized argument.
That is, stop parsing at the first non option (not starting with "-"), or the first unrecognized option. The unparsed arguments are put in the
args
argument ofrun
. - final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- implicit def timer: Timer[IO]
- Attributes
- protected
- Definition Classes
- IOApp
- def toString(): String
- Definition Classes
- AnyRef → Any
- def usageAsked: IO[ExitCode]
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])