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
1 changed files with 4 additions and 0 deletions

View File

@ -22,6 +22,7 @@ local settings = {
depth = 7,
seed = os.time(),
-- TODO: Add branching factor setting here & associated CLI argument
filename = "maze.scad",
scale = 5,
@ -96,6 +97,9 @@ for i=1,#arg do
elseif arg[i] == "--filename" or arg[i] == "-f" then
i = i + 1
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
i = i + 1
settings.scale = tonumber(arg[i])