lazyf 0.1.0

A simple means for grabbing user config, combining flags and a config file format
Documentation

Lazyf

azyf is both a file format, and a mechanism for loading configurations. t's primary aim is to allow the user to be as lazy as possible when rying to get user options out of their code.

ith lazyf user options come from two places. -Flags and config files. he cfg (config) module combines the lzlist (lazyfile) module and the lag module

he lazyf file format basically looks like this:

.. uperman: power:Flying age:29

atman: power:Money age:40 ..

he simplesy way to get config options is:

.. se lazyf::get::SGetter; se lazyf::cfg::Cfg;

et cf = cfg::Cfg::load_first("-c", &["--config-location--"]); et age = cf.get_t_def(("-bman","Batman.age),10); /age == 40 ..

n this config location will be the location specified after the flag -c r the first of the config locations to return a result. f none are found a Cfg is still returned, as flags can still be used.