tt_thoma

"build" command for oclib

Jun 26th, 2021 (edited)
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.31 KB | None | 0 0
  1. local shell = require("shell")
  2. local args, _ = shell.parse(...)
  3.  
  4. function printusage()
  5.   print("Usage: build [PathToFile]")
  6. end
  7.  
  8. if #args ~= 1 then
  9.   printusage()
  10. else
  11.   os.execute("/home/oclib/crash.lua /home/builder-crash.log /home/oclib/builder/builder.lua start --model=" .. table.concat(args))
  12. end
Add Comment
Please, Sign In to add comment