From b9228a24b28bb4633fa1a5928a49dbb97a790d44 Mon Sep 17 00:00:00 2001 From: Marc Gurevitx Date: Fri, 15 Mar 2024 11:14:50 +0300 Subject: [PATCH] Fix multiple files execution with -i --- MiniScript-cpp/src/main.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/MiniScript-cpp/src/main.cpp b/MiniScript-cpp/src/main.cpp index 2a27d00..be8a81b 100644 --- a/MiniScript-cpp/src/main.cpp +++ b/MiniScript-cpp/src/main.cpp @@ -317,6 +317,7 @@ int main(int argc, const char * argv[]) { AddScriptPathVar(arg.c_str()); int rc = DoScriptFile(interp, arg); if (!launchReplAfterScript) return rc; + break; } else { PrintHeaderInfo(); return ReturnErr(String("Unknown option: ") + arg);