add '--log' command line parameter

This commit is contained in:
MihailRis 2026-08-03 19:54:54 +03:00
parent 8b520a3787
commit 7c9fff19e4
3 changed files with 14 additions and 1 deletions

View file

@ -82,6 +82,10 @@ static bool perform_keyword(
params.subProcessDepth = reader.nextInt();
return true;
}, "<depth>", "sub-process depth"),
ArgC("--log", [](auto& params, auto& reader) -> bool {
params.logFile = reader.next();
return true;
}, "<file>", "target log file"),
ArgC("--help", [](auto&, auto&) -> bool {
std::cout << "VoxelCore v" << ENGINE_VERSION_STRING << "\n\n";
std::cout << "Command-line arguments:\n";