Add missing --colour parsing & TODO comment

This commit is contained in:
Starbeamrainbowlabs 2020-09-27 02:15:05 +01:00
parent 7c86534a13
commit d1c2b25bc5
Signed by: sbrl
GPG key ID: 1BE5172E637709C2

View file

@ -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])