diff --git a/console/src/main/scala/io/joern/console/BridgeBase.scala b/console/src/main/scala/io/joern/console/BridgeBase.scala index d953d752c54e..1fb2b7e9f3bf 100644 --- a/console/src/main/scala/io/joern/console/BridgeBase.scala +++ b/console/src/main/scala/io/joern/console/BridgeBase.scala @@ -79,7 +79,7 @@ trait BridgeBase extends InteractiveShell with ScriptExecution with PluginHandli .valueName("'import Int.MaxValue'") .unbounded() .optional() - .action((x, c) => c.copy(runBefore = c.runBefore :+ x)) + .action((x, c) => c.copy(runBefore = c.runBefore ++ x.linesIterator.toIndexedSeq)) .text("given code will be executed on startup - this may be passed multiple times") opt[String]("runAfter")