1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-29 23:13:14 +02:00

Settings: Add bool get()

This commit is contained in:
Eelco Dolstra 2014-09-17 15:18:13 +02:00
parent eca29bd72d
commit d37d012774
4 changed files with 13 additions and 3 deletions

View file

@ -136,6 +136,14 @@ Strings Settings::get(const string & name, const Strings & def)
}
bool Settings::get(const string & name, bool def)
{
bool res = def;
_get(res, name);
return res;
}
void Settings::update()
{
_get(tryFallback, "build-fallback");