final case class WithHelpCommandParser[T](parser: CommandParser[T]) extends CommandParser[WithHelp[T]] with Product with Serializable
- Alphabetic
- By Inheritance
- WithHelpCommandParser
- Serializable
- Product
- Equals
- CommandParser
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new WithHelpCommandParser(parser: CommandParser[T])
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[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def detailedParse[D](args: Seq[String])(implicit beforeCommandParser: parser.Parser[D]): Either[Error, (D, Seq[String], Option[Either[Error, (String, WithHelp[T], RemainingArgs)]])]
Parse arguments.
Parse arguments.
Like
parse
, but keeps the non option arguments in a caseapp.core.RemainingArgs.- returns
in case of error, an caseapp.core.Error, wrapped in scala.Left; in case of success, a
D
, the non option arguments, wrapped in a scala.Right, along with the result of parsing the specified command if any.
- Definition Classes
- CommandParser
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def get(command: String): Option[parser.Parser[WithHelp[T]]]
Check if this caseapp.core.commandparser.CommandParser accepts a command, and return its caseapp.core.parser.Parser if it does.
Check if this caseapp.core.commandparser.CommandParser accepts a command, and return its caseapp.core.parser.Parser if it does.
- returns
in case of success,
Parser[T]
ofcommand
, wrapped in scala.Some; scala.None in case of failure
- Definition Classes
- WithHelpCommandParser → CommandParser
- final def getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def map[U](f: (WithHelp[T]) => U): CommandParser[U]
- Definition Classes
- CommandParser
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def parse[D](args: Seq[String])(implicit beforeCommandParser: parser.Parser[D]): Either[Error, (D, Seq[String], Option[Either[Error, (String, WithHelp[T], Seq[String])]])]
Parse arguments.
Parse arguments.
Arguments before any command are parsed with
beforeCommandParser
as aD
.- returns
in case of error, an caseapp.core.Error, wrapped in scala.Left; in case of success, a
D
, the non option arguments, wrapped in a scala.Right, along with the result of parsing the specified command if any.
- Definition Classes
- CommandParser
- val parser: CommandParser[T]
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- 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 withHelp: CommandParser[WithHelp[WithHelp[T]]]
Creates a CommandParser accepting help / usage arguments, out of this one.
Creates a CommandParser accepting help / usage arguments, out of this one.
- Definition Classes
- CommandParser