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 61b7e57 commit f05e682
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 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 Expand Up @@ -755,8 +760,7 @@ void CONFIG::Run(void)
utf8_to_dos(sec->data, line_dos, UnicodeFallback::Box);

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

0 comments on commit f05e682

Please sign in to comment.