Advertisement
asweigart

buildfloor

Jan 11th, 2017
324
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. --[[Floor Building program by Al Sweigart
  2. Builds a rectangular floor. ]]
  3.  
  4. os.loadAPI('hare')
  5.  
  6. -- handle command line arguments
  7. local cliArgs = {...}
  8. local length = tonumber(cliArgs[1])
  9. local width = tonumber(cliArgs[2])
  10.  
  11. if length == nil or width == nil or cliArgs[1] == '?' then
  12. print('Usage: buildfloor <length> <width>')
  13. return
  14. end
  15.  
  16. hare.buildFloor(length, width)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement