multiarg-0.30.0.10: Command lines for options that take multiple arguments

Safe HaskellSafe-Inferred
LanguageHaskell2010

Multiarg.Limeline

Description

Processes both options and positional arguments. Functions here return both any successful results and any errors. Ordinarily you will not need this module; instead, see Multiarg for most uses or Multiarg.Mode for commands that have more than one mode.

Synopsis

Documentation

data PosArg a Source

Constructors

PosArg a 

Instances

Functor PosArg 
Eq a => Eq (PosArg a) 
Ord a => Ord (PosArg a) 
Show a => Show (PosArg a) 

interspersed :: [(ShortName, ArgSpec a)] -> [(LongName, ArgSpec a)] -> (String -> a) -> [Word] -> ([Either [Output a] (PosArg a)], Maybe OptName) Source

Processes a command line where options are interspersed with positional arguments. A stopper is not returned; all words after a stopper are treated as positional arguments.