aboutsummaryrefslogtreecommitdiff
path: root/selenepaw.lua
blob: 3979d93cb2822486697bd13d5ab2e0eb8c502664 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
--
-- ~~~ main selenepaw tool
--

-- load help messages
local help = require("src/help")

-- check if no args
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()