Skip to content

Commit 816a9a0

Browse files
committed
feat: exit with nonzero for unknown command
1 parent f07d3df commit 816a9a0

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

packages/lde/src/init.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ local commandFiles = {
227227
outdated = "lde.commands.outdated",
228228
uninstall = "lde.commands.uninstall",
229229
publish = "lde.commands.publish",
230-
repl = "lde.commands.repl",
230+
repl = "lde.commands.repl"
231231
}
232232

233233
-- Commands that don't need the global cache dirs initialized
@@ -266,5 +266,6 @@ else
266266
end
267267
else
268268
ansi.printf("{red}Unknown command: %s", tostring(commandName))
269+
os.exit(1)
269270
end
270271
end

0 commit comments

Comments
 (0)