Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Synopsis
- mkCLIArgsSource :: SourceCreator
- mkCLIArgsSource' :: [String] -> SourceCreator
- parseArgsIntoKeyValue :: [String] -> [(Key, Text)]
Command line arguments Source
This source provides keys from the command line arguments passed into
the program. It only accepts arguments with --
and an equals, for
example: ./awesomeapp --warp.port=5000
mkCLIArgsSource :: SourceCreator Source #
Same as mkCLIArgsSource'
but using getArgs
to provide the argument
list
mkCLIArgsSource' :: [String] -> SourceCreator Source #
Create a SourceCreator
for CLIArgs from a argument list