aboutsummaryrefslogtreecommitdiff
path: root/selenepaw.lua
diff options
context:
space:
mode:
Diffstat (limited to 'selenepaw.lua')
-rw-r--r--selenepaw.lua16
1 files changed, 15 insertions, 1 deletions
diff --git a/selenepaw.lua b/selenepaw.lua
index 704ff1a..3979d93 100644
--- a/selenepaw.lua
+++ b/selenepaw.lua
@@ -6,8 +6,22 @@
local help = require("src/help")
-- check if no args
-if not args then
+if #arg == 0 then
help.main()
+ return
end
+
+-- run associated action
+local actions = require("src/actions")
+local action = actions[tostring(arg[1])]
+
+if not action then
+
+ help.main()
+ return
+
+end
+
+action()