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,
|
||||
|
||||
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])
|
||||
|
|
Loading…
Reference in a new issue