summaryrefslogtreecommitdiff
path: root/script/cli/init.lua
blob: 6d7fc0ff1cea7b24a6e76fbc8048f8725729fde0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
if _G['VERSION'] then
    require 'cli.version'
    os.exit(0, true)
end

if _G['CHECK'] then
    require 'cli.check'
    os.exit(0, true)
end

if _G['DOC'] then
    require 'cli.doc' .runCLI()
    os.exit(0, true)
end

if _G['VISUALIZE'] then
	local ret = require 'cli.visualize' .runCLI()
	os.exit(ret or 0, true)
end