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: AnyRef): Boolean

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

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

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

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

    Definition Classes
    Any
  6. def anyFlag[A](f: Flags[A]): Parser[(A) ⇒ A]

    Constructs a parser that will match any flag.

  7. final def asInstanceOf[T0]: T0

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

    Constructs a parser for either short or long notation.

  9. def clone(): AnyRef

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

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

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

    Constructs a parser that will switch on sub commands.

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

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

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

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

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

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

    Constructs a parser for a single flag.

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

    Constructs a parser that will consume all flags.

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

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

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

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

    Constructs a parser for long flag notation

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

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

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

    Definition Classes
    AnyRef
  25. 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?

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

    Constructs a parser that will consume all positional parameters.

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

    Constructs a parser for short flag notation.

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

    Constructs a parser that will switch on sub command.

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

    Definition Classes
    AnyRef
  30. def toString(): String

    Definition Classes
    AnyRef → Any
  31. 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.

  32. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped