Packages

case class Parser(name: String, description: String = "") extends ParsedArgument[AnyVal] with Product with Serializable

Linear Supertypes
Serializable, Product, Equals, ParsedArgument[AnyVal], BaseArgument, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Parser
  2. Serializable
  3. Product
  4. Equals
  5. ParsedArgument
  6. BaseArgument
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new Parser(name: String, description: String = "")

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. def addDefault[T](name: String, value: T): Parser

    Add a default argument to the current parser

    Add a default argument to the current parser

    the deepest used parser's default argument will take precedent

    T

    the type of the value of the default argument

    name

    the name of the default argument

    value

    the value the default argument is supposed to take

    returns

    the parser itself to chain commands

    Annotations
    @nowarn()
  5. def addFlag(name: String, short: Char, long: String, description: String = ""): Parser

    add a flag

    add a flag

    name

    the name of the flag

    short

    the short name of the flag

    long

    the long name of the flag

    description

    the description of what the flag affects

    returns

    the parser itself to chain commands

  6. def addOptional[T](name: String, short: Char, long: String, process: (String) => T, default: Option[T] = None, description: String = "")(implicit tag: ClassTag[T]): Parser

    add an optional argument

    add an optional argument

    T

    the type of the final value of the argument

    name

    the name of the optional argument

    short

    the short name for the optional argument

    long

    the long name for the optional argument

    process

    the function to process the cmd line string to the argument type

    default

    the default value if no argument is provided by the user

    description

    the description for the optional argument

    returns

    the parser itself to chain commands

  7. def addPositional[T](name: String, process: (String) => T, description: String)(implicit tag: ClassTag[T]): Parser

    add a positional argument

    add a positional argument

    T

    the type of the finally parsed positional argument after parsing

    name

    the name of the positional argument

    process

    the function to process the cmd line string to the argument type

    description

    the description of the argument

    returns

    the parser itself to chain commands

  8. def addPositional[T](name: String, process: (String) => T)(implicit tag: ClassTag[T]): Parser

    add a positional argument

    add a positional argument

    name

    the name of the positional argument

    returns

    the parser itself to chain commands

  9. def addSubparser(parser: Parser): Parser
  10. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  11. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
  12. def createCommandString(current: Option[String]): String
  13. val description: String
    Definition Classes
    ParserBaseArgument
  14. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  16. def getCommandString: String
    Attributes
    protected
  17. def help(): String
    Definition Classes
    ParserParsedArgument
  18. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  19. val name: String
    Definition Classes
    ParserBaseArgument
  20. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  21. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  22. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  23. def parse(args: Iterable[String])(implicit result: ParsingResult): Iterable[String]
    Definition Classes
    ParserParsedArgumentBaseArgument
  24. def parseArgs(args: Iterable[String])(implicit parsingResult: ParsingResult = new ParsingResult()): ParsingResult
    Annotations
    @throws(scala.this.throws.<init>$default$1[de.halcony.argparse.ParsingException])
  25. def productElementNames: Iterator[String]
    Definition Classes
    Product
  26. def setParent(parent: Parser): Parser
  27. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  28. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  29. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  30. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from ParsedArgument[AnyVal]

Inherited from BaseArgument

Inherited from AnyRef

Inherited from Any

Ungrouped