handle missing options

This commit is contained in:
pepopo978
2024-05-27 17:38:51 -07:00
parent bc55c930a9
commit 98bac7762b
+5 -3
View File
@@ -17,9 +17,11 @@ local curseNoTarget = "|cffffcc00Cursive:|cffffaaaa Couldn't find a target to cu
local function parseOptions(optionsStr)
local options = { }
for option, _ in pairs(commandOptions) do
if string.find(optionsStr, option) then
options[option] = true
if optionsStr then
for option, _ in pairs(commandOptions) do
if string.find(optionsStr, option) then
options[option] = true
end
end
end