optparse-applicative-simple-1: Simple command line interface arguments parser

Safe HaskellNone
LanguageHaskell2010

OptparseApplicative.Simple.Parser

Synopsis

Documentation

type Parser = Parser Source #

Specification of a command line arguments parser and help generator.

Has instances of Functor, Applicative and Alternative, which you can use for composition.

argument Source #

Arguments

:: Text

Long name

-> Maybe Char

Possible short name

-> Maybe Text

Possible description

-> Maybe (a, Text)

Possible default value with its text representation to display in the generated help

-> Parser a

Attoparsec parser of the value. The "attoparsec-data" package provides such parsers for a lot of standard types

-> Parser a 

Definition of a single argument.