conferer-1.0.0.1: Configuration management library
Copyright(c) 2019 Lucas David Traverso
LicenseMPL-2.0
MaintainerLucas David Traverso <lucas6246@gmail.com>
Stabilitystable
Portabilityportable
Safe HaskellSafe-Inferred
LanguageHaskell2010

Conferer.Source.CLIArgs

Description

Command line arguments based source

Synopsis

Documentation

data CLIArgsSource 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

type RawCLIArgs = [String] Source #

Type alias for cli args

fromEnv :: IO Source Source #

Create a Source using fromArgs but using real cli args

fromArgs :: RawCLIArgs -> Source Source #

Create a Source using cli args passed as parameter

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

Parse an argument list into a dictionary suitable for a Source