Package

kadai

cmdopts

Permalink

package cmdopts

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. cmdopts
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. abstract class CmdOpts[T] extends AnyRef

    Permalink

    This class implements a simple but type-safe command-line option parser.

    This class implements a simple but type-safe command-line option parser.

    You will generally use this by declaring an object that extends CmdOpts and passing in args (the array of cmd-line String arguments).

    You then ask for the specific options by calling 'opt' with the String for the option name, and a function that takes the next n Strings and returns a thing of the type you want. If the arguments are found they are passed to the function and the result is returned inside a Some, if they cannot be found or an exception is thrown from the function, a None is returned.

    Validation error messages can be specified by implementing the validate method.

    Usage and Version messages can be specified by implementing the usage and version methods respectively.

    See also

    Example.scala

  2. implicit final class ValidationNelSyntax[A, B] extends AnyVal

    Permalink

Value Members

  1. object CmdOpts

    Permalink
  2. object Example extends App

    Permalink
  3. val nat: Nat.type

    Permalink

Inherited from AnyRef

Inherited from Any

Ungrouped