Package

com.monovore

decline

Permalink

package decline

Visibility
  1. Public
  2. All

Type Members

  1. trait Argument[A] extends AnyRef

    Permalink

    This typeclass captures the information needed to use this type as an option argument.

    This typeclass captures the information needed to use this type as an option argument.

    See the documentation for more details.

    Annotations
    @implicitNotFound( ... )
  2. class Command[+A] extends AnyRef

    Permalink

    A top-level argument parser, with all the info necessary to parse a full set of arguments or display a useful help text.

  3. abstract class CommandApp extends AnyRef

    Permalink

    This abstract class takes a Command[Unit] and turns it into a main method for your application.

    This abstract class takes a Command[Unit] and turns it into a main method for your application. Normally, you want to extend this class from a top-level object:

    package myapp
    
    import com.monovore.decline._
    
    object MyApp extends CommandApp(
      name = "my-app",
      header = "This is a standalone application!",
      main =
        Opts.flag("fantastic", "Everything is working.")
    )

    This should now behave like any other object with a main method -- for example, on the JVM, this could be invoked as java myapp.MyApp --fantastic.

  4. case class Help(errors: List[String], prefix: NonEmptyList[String], usage: List[String], body: List[String]) extends Product with Serializable

    Permalink
  5. sealed trait Opts[+A] extends AnyRef

    Permalink

    Represents zero or more command-line opts.

  6. sealed abstract class Visibility extends AnyRef

    Permalink

Value Members

  1. object Argument extends PlatformArguments

    Permalink
  2. object Command

    Permalink
  3. object Help extends Serializable

    Permalink
  4. object Opts

    Permalink
  5. object PlatformApp

    Permalink
  6. object Visibility

    Permalink

Ungrouped