com.monovore.decline

Members list

Concise view

Type members

Classlikes

trait Argument[A]

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.

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
object Argument

Attributes

Companion:
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
class Command[+A]

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

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

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any
object Command

Attributes

Companion:
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Command.type
abstract class CommandApp(command: Command[Unit])

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:

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.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
case class Help(errors: List[String], prefix: NonEmptyList[String], usage: List[String], body: List[String])

Attributes

Companion:
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
object Help

Attributes

Companion:
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Help.type
sealed trait Opts[+A]

Represents zero or more command-line opts.

Represents zero or more command-line opts.

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any
object Opts

Attributes

Companion:
trait
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
Opts.type

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
sealed abstract class Visibility

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Normal.type
object Partial.type
object Visibility

Attributes

Companion:
class
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type