Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[Floor Building program by Al Sweigart
- Builds a rectangular floor. ]]
- os.loadAPI('hare')
- -- handle command line arguments
- local cliArgs = {...}
- local length = tonumber(cliArgs[1])
- local width = tonumber(cliArgs[2])
- if length == nil or width == nil or cliArgs[1] == '?' then
- print('Usage: buildfloor <length> <width>')
- return
- end
- hare.buildFloor(length, width)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement