conferer-0.4.1.1: Configuration management library

Safe HaskellSafe
LanguageHaskell2010

Conferer.Source.CLIArgs

Contents

Synopsis

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

parseArgsIntoKeyValue :: [String] -> [(Key, Text)] Source #

Parse an argument list into a dictionary suitable for a Source