Commit 685a131d authored by Giorgio Azzinnaro's avatar Giorgio Azzinnaro

config file

parent 7bb2a9c8
......@@ -54,7 +54,7 @@ Config::Config(int argc, char * argv[])
("help,h",
"Display this help message")
("profanedb_config_file",
("profanedb_config_file,c",
value<path>()->default_value("/etc/profanedb.conf"),
"The path to ProfaneDB configuration file");
cmd.add(conf);
......@@ -112,7 +112,7 @@ const path Config::RocksPath() const
return this->vm["rocksdb_path"].as<path>();
}
// TODO
// TODO From file
const rocksdb::Options Config::RocksOptions() const
{
rocksdb::Options options;
......
......@@ -27,6 +27,7 @@ int main(int argc, char* argv[]) {
profanedb::server::Config config(argc, argv);
// If help message was requested stop execution here
// TODO If schema path was not set
if (config.ShowHelp())
return 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment