Review changes fixed

This commit is contained in:
sale 2016-12-28 11:56:53 +00:00
parent 02f332c34f
commit 1c1cf1ad88
2 changed files with 5 additions and 4 deletions

View File

@ -49,7 +49,7 @@ class Config {
// default user configuration
// fetches user configuration folder
std::string homedir = std::getenv("HOME");
if ((homedir == "") {
if ((homedir == "")) {
homedir = getpwuid(getuid())->pw_dir;
}
homedir += "/.memgraph/config.yaml";
@ -70,7 +70,7 @@ class Config {
REGISTER_ARGS(argc, argv);
for (const auto& argument : Definition::arguments) {
dict[argument] = GET_ARG("-" + argument, dict[argument]).get_string();
dict[argument] = GET_ARG("--" + argument, dict[argument]).get_string();
}
}

View File

@ -26,7 +26,7 @@ void throw_and_stacktace(std::string message) {
logger.info(stacktrace.dump());
}
int main(void) {
int main(int argc, char** argv) {
// TODO figure out what is the relationship between this and signals
// that are configured below
std::set_terminate(&terminate_handler);
@ -58,7 +58,8 @@ int main(void) {
exit(1);
});
// TODO CONFIG call
CONFIG_REGISTER_ARGS(argc, argv);
io::Socket socket;