Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Synopsis
- mkCLIArgsProvider :: ProviderCreator
- mkCLIArgsProvider' :: [String] -> ProviderCreator
- parseArgsIntoKeyValue :: [String] -> [(Key, Text)]
Command line arguments Provider
This provider 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
mkCLIArgsProvider :: ProviderCreator Source #
Same as mkCLIArgsProvider'
but using getArgs
to provide the argument
list
mkCLIArgsProvider' :: [String] -> ProviderCreator Source #
Create a ProviderCreator
for CLIArgs from a argument list