stack-1.0.0: The Haskell Tool Stack

Safe HaskellSafe
LanguageHaskell2010

Options.Applicative.Args

Description

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

Synopsis

Documentation

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

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

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

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

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

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

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

Parse from a string.