stack-1.3.2: The Haskell Tool Stack

Safe Haskell | Safe
Language | Haskell2010

Options.Applicative.Args

Description

Accepting arguments to be passed through to a sub-process.

Synopsis

- argsArgument :: Mod ArgumentFields [String] -> Parser [String]
- argsOption :: Mod OptionFields [String] -> Parser [String]
- cmdOption :: Mod OptionFields (String, [String]) -> Parser (String, [String])
- parseArgsFromString :: String -> Either String [String]

# Documentation

argsArgument :: Mod ArgumentFields [String] -> Parser [String] #

An argument which accepts a list of arguments e.g. `--ghc-options="-X P.hs "this""`.

argsOption :: Mod OptionFields [String] -> Parser [String] #

An option which accepts a list of arguments e.g. `--ghc-options="-X P.hs "this""`.

cmdOption :: Mod OptionFields (String, [String]) -> Parser (String, [String]) #

An option which accepts a command and a list of arguments e.g. `--exec "echo hello world"`

parseArgsFromString :: String -> Either String [String] #

Parse from a string.