From e98d0c6b3498f8450eb1976cabecfe25b2a19f52 Mon Sep 17 00:00:00 2001 From: Robert McLay Date: Thu, 14 Mar 2024 10:53:57 -0600 Subject: [PATCH] Issue #697: Ignore options like --help after a command is found in ml --- src/ml_cmd.in.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ml_cmd.in.lua b/src/ml_cmd.in.lua index 1276443c2..0e31940f6 100644 --- a/src/ml_cmd.in.lua +++ b/src/ml_cmd.in.lua @@ -293,8 +293,9 @@ function main() local cmd = lmodCmdT[v] if (cmd and not cmdFound) then - cmdA[#cmdA + 1] = cmd - cmdFound = true + cmdA[#cmdA + 1] = cmd + cmdFound = true + stop_processing_opts = true break end