Skip to content

Commit

Permalink
Issue #697: Ignore options like --help after a command is found in ml
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert McLay committed Mar 14, 2024
1 parent 14bf09e commit e98d0c6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/ml_cmd.in.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit e98d0c6

Please sign in to comment.