feat(parser): get config file from arg

This commit is contained in:
3lswear
2022-02-12 00:30:50 +03:00
parent 4c7712eac1
commit 29ae04e40d
10 changed files with 14 additions and 13 deletions

View File

@@ -38,9 +38,9 @@ namespace config
}
}
TOMLMap *parse(void)
TOMLMap *parse(char *filename)
{
std::string filename = "config/tester.toml";
// std::string fiцename = "config/simple.toml";
config::TOMLParser parser(filename);
TOMLMap *root = parser.parse();
/* config::display(root); */