diff --git a/src/main.cpp b/src/main.cpp index 946c370..f9b5b65 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1016,6 +1016,11 @@ int main(int argc, char** argv) { levels["subworld"]->ExportToJSON(result["subworldJson"].as()); } } + + if(result.count("code")) { + std::filesystem::remove(path); + } + return 0; } else { fmt::print("Path {} does not exist\n", path);