io.mth.pirate

CommandParsers

object CommandParsers

Parsers for command line arguments.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. CommandParsers
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

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 anyFlag[A](f: Flags[A]): Parser[(A) ⇒ A]

    Constructs a parser that will match any flag.

  5. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  6. def both(s: Char, l: String): Parser[String]

    Constructs a parser for either short or long notation.

  7. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def commandline[A](f: Flags[A], p: Positionals[A]): Parser[(A) ⇒ A]

    Constructs a parser that will consume all flags then all positional parameters.

  9. def commands[A](commands: List[SubCommand[A]]): Parser[A]

    Constructs a parser that will switch on sub commands.

  10. def empty[A]: Parser[List[A]]

    A parser that consumes no input and produces an empty list.

  11. final def eq(arg0: AnyRef): Boolean

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

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

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. def flag[A](f: Flag[A]): Parser[(A) ⇒ A]

    Constructs a parser for a single flag.

  15. def flags[A](f: Flags[A]): Parser[List[(A) ⇒ A]]

    Constructs a parser that will consume all flags.

  16. final def getClass(): Class[_]

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

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

    Definition Classes
    Any
  19. def long(l: String): Parser[String]

    Constructs a parser for long flag notation

  20. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  23. def positional[A](p: Positional[A]): Parser[(A) ⇒ A]

    Constructs a parser for a positioanl parameter.

    Constructs a parser for a positioanl parameter.

    TODO try to detect ambiguities?

  24. def positionals[A](p: Positionals[A]): Parser[List[(A) ⇒ A]]

    Constructs a parser that will consume all positional parameters.

  25. def short(s: Char): Parser[String]

    Constructs a parser for short flag notation.

  26. def subcommand[A](seed: A, command: Command[A]): Parser[A]

    Constructs a parser that will switch on sub command.

  27. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  28. def toString(): String

    Definition Classes
    AnyRef → Any
  29. def untilEndOfFlags[A](p: Parser[A]): Parser[List[A]]

    Constructs a parser that will repeat until either the parser fails or the end of flags marker is reached.

  30. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped