diff options
author | mitchell <70453897+667e-11@users.noreply.github.com> | 2016-04-02 23:35:15 -0400 |
---|---|---|
committer | mitchell <70453897+667e-11@users.noreply.github.com> | 2016-04-02 23:35:15 -0400 |
commit | 0c4915da62a96bf6db20377ce11fa887b6271ad9 (patch) | |
tree | 4bc7d4b0722bce49aebf341841f3ab4fa8ad1dfd /core/args.lua | |
parent | f6705b546d2f037302f2d2d95bae507e78b29d59 (diff) |
Code cleanup.
Do not use `ipairs()` and use more consistent variable names among other things.
Diffstat (limited to 'core/args.lua')
-rw-r--r-- | core/args.lua | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/core/args.lua b/core/args.lua index c27da28e..834ba973 100644 --- a/core/args.lua +++ b/core/args.lua @@ -50,9 +50,7 @@ local function process(arg) local switch = switches[arg[i]] if switch then local f, n = table.unpack(switch) - local args = {} - for j = i + 1, i + n do args[#args + 1] = arg[j] end - f(table.unpack(args)) + f(table.unpack(arg, i + 1, i + n)) i = i + n else io.open_file(lfs.abspath(arg[i], arg[-1])) |