1
0
mirror of https://github.com/TomHarte/CLK.git synced 2026-04-20 10:17:05 +00:00

Improve formatting.

This commit is contained in:
Thomas Harte
2025-12-01 16:56:58 -05:00
parent 4deae7b45d
commit d1bab5b589
+5 -4
View File
@@ -557,13 +557,14 @@ int main(int argc, char *argv[]) {
}
std::cout << "}" << std::endl << std::endl;
std::cout << "Media is required to start the: ";
std::cout << "A file is required to start the ";
const auto other_machines = Machine::AllMachines(Machine::Type::RequiresMedia, true);
is_first = true;
size_t index = 0;
for(const auto &name: other_machines) {
if(!is_first) std::cout << ", ";
if(index == other_machines.size() - 1) std::cout << " and ";
else if(index > 0) std::cout << ", ";
std::cout << name;
is_first = false;
++index;
}
std::cout << "." << std::endl << std::endl;