diff --git a/musique/main.cc b/musique/main.cc index 45b40b3..db8fa1d 100644 --- a/musique/main.cc +++ b/musique/main.cc @@ -445,6 +445,11 @@ static std::optional Main(std::span args) } } + enable_repl = enable_repl || std::all_of(runnables.begin(), runnables.end(), + [](Run const& run) { + return run.type == Run::Deffered_File; + }); + if (runnables.empty() || enable_repl) { repl_line_number = 1; enable_repl = true;