diff --git a/src/main.rs b/src/main.rs index 04697f0e0..74a3664ef 100644 --- a/src/main.rs +++ b/src/main.rs @@ -162,7 +162,7 @@ fn main() -> Result<()> { // Next, let's check if there are any flags we want to pass to the main function let args: Vec = std::env::args().skip(2).collect(); - if args.is_empty() { + if args.is_empty() && engine_state.find_decl(b"main").is_none() { return Ok(()); }