@hackage config-value-getopt0.1.1.1
Interface between config-value and System.GetOpt
Categories
License
MIT
Maintainer
emertens@galois.com
Links
Versions
Installation
Tested Compilers
Dependencies (3)
- base >=4.8 && <4.15
- config-value >=0.7 && <0.8
- text >=1.2.1.3 && <1.3 Show all…
Dependents (1)
@hackage/acme-everything
config-value-getopt
The config-value-getopt package allows GetOpt[1] specified options to be loaded from a configuration file in the config-value[2] format.
- config-value section names are matched against the "long" option names in GetOpt.
- Argument values can be provided as strings or numbers
- An option will be omitted if its value is set to
no - An option's argument will be omitted if its value is set to
yes
Example:
address: "::"
port: 9000
no-access-log: yes
hostname: no
translates to
--address="::" --port="9000" --no-access-log