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 11, 2024
1 parent 4bf89e2 commit dbf1e1f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/misc/programs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -641,6 +641,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 @@ -655,15 +656,19 @@ void CONFIG::Run(void)
}
}
}

if (control->startup_params.size() > 0) {
std::string test;
for (auto 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 Expand Up @@ -760,7 +765,7 @@ void CONFIG::Run(void)

MoreOutputStrings output(*this);
output.AddString("\n%s", line_dos.c_str());
output.AddString("\n);
output.AddString("\n\n");
output.Display();
break;
}
Expand Down

0 comments on commit dbf1e1f

Please sign in to comment.