Added screenshot command

This commit is contained in:
2025-05-30 11:55:04 -04:00
parent 557096abef
commit 6dc1196646

View File

@@ -90,6 +90,10 @@ void FractalInspectorApp::ParseCmdLineMessage(const std::string &message) {
}
if (misc::string_matches(cmd, {"screenshot", "screeny", "capture"})) {
return TakeScreenshot();
}
console->Log(std::format("No such command: {}", cmd), Colors::Red);
}
@@ -725,4 +729,6 @@ void FractalInspectorApp::TakeScreenshot() {
file.close();
console->Log(std::format("Took screenshot: {}", filename.str()));
}