Skip to content

Commit

Permalink
Improve CONFIG -l output
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnovak committed Jun 12, 2024
1 parent bbee1c7 commit 7c9cb31
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/misc/programs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -637,6 +637,7 @@ void CONFIG::Run(void)

if (size == 0) {
WriteOut(MSG_Get("PROGRAM_CONFIG_NOCONFIGFILE"));

} else {
WriteOut(MSG_Get("PROGRAM_CONFIG_PRIMARY_CONF"),
control->configfiles.front().c_str());
Expand All @@ -651,15 +652,19 @@ void CONFIG::Run(void)
}
}
}

if (control->startup_params.size() > 0) {
std::string test;
for (size_t k = 0; k < control->startup_params.size();
++k) {
test += control->startup_params[k] + " ";
}

WriteOut(MSG_Get("PROGRAM_CONFIG_PRINT_STARTUP"),
test.c_str());
}

WriteOut("\n");
break;
}

Expand Down

0 comments on commit 7c9cb31

Please sign in to comment.