Add missing --colour parsing & TODO comment
This commit is contained in:
parent
7c86534a13
commit
d1c2b25bc5
1 changed files with 4 additions and 0 deletions
4
main.lua
4
main.lua
|
@ -22,6 +22,7 @@ local settings = {
|
||||||
depth = 7,
|
depth = 7,
|
||||||
|
|
||||||
seed = os.time(),
|
seed = os.time(),
|
||||||
|
-- TODO: Add branching factor setting here & associated CLI argument
|
||||||
filename = "maze.scad",
|
filename = "maze.scad",
|
||||||
|
|
||||||
scale = 5,
|
scale = 5,
|
||||||
|
@ -96,6 +97,9 @@ for i=1,#arg do
|
||||||
elseif arg[i] == "--filename" or arg[i] == "-f" then
|
elseif arg[i] == "--filename" or arg[i] == "-f" then
|
||||||
i = i + 1
|
i = i + 1
|
||||||
settings.filename = arg[i]
|
settings.filename = arg[i]
|
||||||
|
elseif arg[i] == "--colour" then
|
||||||
|
i = i + 1
|
||||||
|
settings.colour = arg[i]
|
||||||
elseif arg[i] == "--scale" or arg[i] == "-m" then
|
elseif arg[i] == "--scale" or arg[i] == "-m" then
|
||||||
i = i + 1
|
i = i + 1
|
||||||
settings.scale = tonumber(arg[i])
|
settings.scale = tonumber(arg[i])
|
||||||
|
|
Loading…
Reference in a new issue