add '--dbg-server' command-line argument & add debugging server draft

This commit is contained in:
MihailRis
2025-10-05 23:54:29 +03:00
parent 2895cff5f2
commit 80cd187c6f
7 changed files with 142 additions and 5 deletions
+5 -1
View File
@@ -70,11 +70,15 @@ static bool perform_keyword(
std::cout << ENGINE_VERSION_STRING << std::endl;
return false;
}, "", "display the engine version."),
ArgC("--dbg-server", [&params, &reader]() -> bool {
params.debugServerString = reader.next();
return true;
}, "<serv>", "open debugging server where <serv> is {transport}:{port}"),
ArgC("--help", []() -> bool {
std::cout << "VoxelCore v" << ENGINE_VERSION_STRING << "\n\n";
std::cout << "Command-line arguments:\n";
for (auto& a : argumentsCommandline) {
std::cout << std::setw(20) << std::left << (a.keyword + " " + a.args);
std::cout << std::setw(24) << std::left << (a.keyword + " " + a.args);
std::cout << "- " << a.help << std::endl;
}
std::cout << std::endl;