aboutsummaryrefslogtreecommitdiff
path: root/challenge-089/tyler-wardhaugh/lua/run.lua
blob: c6e7473bee07250fc6975e49aa0d5358391500d1 (plain)
1
2
3
4
5
6
7
8
9
#!/usr/bin/env lua

local filename = arg[1]
local run_args = table.move(arg, 2, #arg, 1, {})

io.write(string.format("Running task from '%s' with {%s}:\n",
  filename, table.concat(run_args, ", ")))

require(filename).run(run_args)