Package

org.rogach

scallop

Permalink

package scallop

Source
package.scala
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. scallop
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. sealed trait CliOption extends AnyRef

    Permalink
  2. class LazyMap[A, +B] extends Map[A, B]

    Permalink

    A class, that lazily encapsulates a map inside.

  3. case class LongNamedPropertyOption(name: String, descr: String, converter: ValueConverter[_], keyName: String, valueName: String, hidden: Boolean) extends CliOption with Product with Serializable

    Permalink
  4. case class NumberArgOption(name: String, required: Boolean, descr: String, converter: ValueConverter[Long], validator: (scala.reflect.api.JavaUniverse.TypeTag[_], Any) ⇒ Boolean, default: () ⇒ Option[Long], hidden: Boolean) extends CliOption with Product with Serializable

    Permalink
  5. case class PropertyOption(name: String, short: Char, descr: String, converter: ValueConverter[_], keyName: String, valueName: String, hidden: Boolean) extends CliOption with Product with Serializable

    Permalink
  6. case class Scallop(args: Seq[String] = Nil, opts: List[CliOption] = Nil, mainOpts: List[String] = Nil, vers: Option[String] = None, bann: Option[String] = None, foot: Option[String] = None, descr: String = "", helpWidth: Option[Int] = None, shortSubcommandsHelp: Boolean = false, appendDefaultToDescription: Boolean = false, subbuilders: List[(String, Scallop)] = Nil, parent: Option[Scallop] = None) extends Product with Serializable

    Permalink

    The main builder class.

    The main builder class.

    args

    Arguments to parse.

    opts

    Options definitions.

    mainOpts

    Names of options, that are to be printed first in the help printout

    vers

    Version string to display in help.

    bann

    Banner (summary of this program and command-line usage) to display in help.

    foot

    Footer - displayed after options.

    descr

    Short description - used for subcommands

    helpWidth

    Width, to which the help output will be formatted (note that banner, footer, version and description are not affected!)

    shortSubcommandsHelp

    If true, then help output from this builder wouldn't list full help for subcommands, only short description

    subbuilders

    subcommands in this builder

  7. abstract class ScallopConf extends ScallopConfValidations

    Permalink
  8. trait ScallopConfValidations extends AnyRef

    Permalink

    Helper trait for generaton of validate methods on ScallopConf.

  9. abstract class ScallopOption[A] extends AnyRef

    Permalink

    A class to hold a reference to not-yet-computed option values.

    A class to hold a reference to not-yet-computed option values.

    Basically, this is a lazy option - it batches up all operations, and evaluates the value only as the last resort.

  10. case class SimpleOption(name: String, short: Option[Char], descr: String, required: Boolean, converter: ValueConverter[_], default: () ⇒ Option[Any], validator: (scala.reflect.api.JavaUniverse.TypeTag[_], Any) ⇒ Boolean, argName: String, hidden: Boolean, noshort: Boolean) extends CliOption with Product with Serializable

    Permalink
  11. class Subcommand extends ScallopConf

    Permalink
  12. case class ToggleOption(name: String, default: () ⇒ Option[Boolean], short: Option[Char], noshort: Boolean, prefix: String, descrYes: String, descrNo: String, hidden: Boolean) extends CliOption with Product with Serializable

    Permalink
  13. case class TrailingArgsOption(name: String, required: Boolean, descr: String, converter: ValueConverter[_], validator: (scala.reflect.api.JavaUniverse.TypeTag[_], Any) ⇒ Boolean, default: () ⇒ Option[Any], hidden: Boolean) extends CliOption with Product with Serializable

    Permalink
  14. trait ValueConverter[A] extends AnyRef

    Permalink

    Converter from list of plain strings to something meaningful.

Value Members

  1. object ArgType extends Enumeration

    Permalink

    An enumeration of possible arg types by number of arguments they can take.

  2. object Formatter

    Permalink
  3. object Scallop extends Serializable

    Permalink

    The creator and god of all parsers :)

  4. object TrailingArgumentsParser

    Permalink

    Parses the trailing arguments (including the arguments to last option).

    Parses the trailing arguments (including the arguments to last option). Uses simple backtraking algorithm.

  5. implicit val bigDecimalConverter: ValueConverter[BigDecimal]

    Permalink
  6. implicit val bigIntConverter: ValueConverter[BigInt]

    Permalink
  7. implicit val byteConverter: ValueConverter[Byte]

    Permalink
  8. implicit val byteListConverter: ValueConverter[List[Byte]]

    Permalink
  9. implicit val bytePropsConverter: ValueConverter[Map[String, Byte]]

    Permalink
  10. implicit val charConverter: ValueConverter[Char]

    Permalink
  11. implicit val charPropsConverter: ValueConverter[Map[String, Char]]

    Permalink
  12. implicit val doubleConverter: ValueConverter[Double]

    Permalink
  13. implicit val doubleListConverter: ValueConverter[List[Double]]

    Permalink
  14. implicit val doublePropsConverter: ValueConverter[Map[String, Double]]

    Permalink
  15. package exceptions

    Permalink
  16. implicit val fileConverter: ValueConverter[File]

    Permalink
  17. implicit val flagConverter: ValueConverter[Boolean]

    Permalink
  18. implicit val floatConverter: ValueConverter[Float]

    Permalink
  19. implicit val floatListConverter: ValueConverter[List[Float]]

    Permalink
  20. implicit val floatPropsConverter: ValueConverter[Map[String, Float]]

    Permalink
  21. implicit val intConverter: ValueConverter[Int]

    Permalink
  22. implicit val intListConverter: ValueConverter[List[Int]]

    Permalink
  23. implicit val intPropsConverter: ValueConverter[Map[String, Int]]

    Permalink
  24. def listArgConverter[A](conv: (String) ⇒ A)(implicit tt: scala.reflect.api.JavaUniverse.TypeTag[List[A]]): ValueConverter[List[A]]

    Permalink
  25. implicit val longConverter: ValueConverter[Long]

    Permalink
  26. implicit val longListConverter: ValueConverter[List[Long]]

    Permalink
  27. implicit val longPropsConverter: ValueConverter[Map[String, Long]]

    Permalink
  28. def numberHandler[T](name: String): PartialFunction[Throwable, Either[String, Option[T]]]

    Permalink

    Handler function for numeric types which expects a NumberFormatException and prints a more helpful error message.

    Handler function for numeric types which expects a NumberFormatException and prints a more helpful error message.

    name

    the type name to display

  29. def optDefault[A](default: A)(implicit conv: ValueConverter[A]): ValueConverter[A]

    Permalink
  30. object overrideColorOutput extends DynamicVariable[Option[Boolean]]

    Permalink
  31. implicit val pathConverter: ValueConverter[Path]

    Permalink
  32. def propsConverter[A](conv: ValueConverter[A])(implicit tt: scala.reflect.api.JavaUniverse.TypeTag[Map[String, A]]): ValueConverter[Map[String, A]]

    Permalink
  33. implicit val shortConverter: ValueConverter[Short]

    Permalink
  34. implicit val shortListConverter: ValueConverter[List[Short]]

    Permalink
  35. implicit val shortPropsConverter: ValueConverter[Map[String, Short]]

    Permalink
  36. def singleArgConverter[A](conv: (String) ⇒ A, handler: PartialFunction[Throwable, Either[String, Option[A]]] = PartialFunction.empty)(implicit tt: scala.reflect.api.JavaUniverse.TypeTag[A]): ValueConverter[A]

    Permalink

    Create a converter for an argument with a single value.

    Create a converter for an argument with a single value.

    conv

    the conversion function to use, which may throw an exception on error

    handler

    an error handler function for writing custom error messages

  37. implicit val stringConverter: ValueConverter[String]

    Permalink
  38. implicit val stringListConverter: ValueConverter[List[String]]

    Permalink
  39. implicit val stringPropsConverter: ValueConverter[Map[String, String]]

    Permalink
  40. val tallyConverter: ValueConverter[Int]

    Permalink
  41. object throwError extends DynamicVariable[Boolean]

    Permalink

    Convenience variable to permit testing.

  42. implicit val uriConverter: ValueConverter[URI]

    Permalink
  43. implicit val urlConverter: ValueConverter[URL]

    Permalink

Inherited from AnyRef

Inherited from Any

Ungrouped