aboutsummaryrefslogtreecommitdiff
path: root/nerv/nerv
diff options
context:
space:
mode:
Diffstat (limited to 'nerv/nerv')
-rw-r--r--nerv/nerv10
1 files changed, 5 insertions, 5 deletions
diff --git a/nerv/nerv b/nerv/nerv
index 7571659..e5943aa 100644
--- a/nerv/nerv
+++ b/nerv/nerv
@@ -1,13 +1,13 @@
#! /usr/bin/env luajit
require 'nerv'
print("Greetings")
-if #arg < 1 then
+if #args < 1 then
return
end
-local script = arg[1]
+local script = args[1]
local script_arg = {}
-for i = 2, #arg do
- table.insert(script_arg, arg[i])
+for i = 2, #args do
+ table.insert(script_arg, args[i])
end
-arg = script_arg
+args = script_arg
dofile(script)