Review changes fixed
This commit is contained in:
parent
02f332c34f
commit
1c1cf1ad88
@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user