update Config handling

rename from_env() -> fromEnv()
add fromDefs()
This commit is contained in:
Michael Davidsaver
2020-07-21 13:32:17 -07:00
parent c282d94621
commit 7debb1fae3
17 changed files with 158 additions and 68 deletions
+3 -3
View File
@@ -33,10 +33,10 @@ void testParse()
client::Config conf;
try {
conf = client::Config::from_env();
testPass("client::Config::from_env()");
conf = client::Config::fromEnv();
testPass("client::Config::fromEnv()");
}catch(std::exception& e){
testFail("client::Config::from_env() %s : %s", typeid (e).name(), e.what());
testFail("client::Config::fromEnv() %s : %s", typeid (e).name(), e.what());
}
if(testEq(conf.addressList.size(), 2u)) {