moonscript/cmd/args.moon: fix unpack() Lua 5.2+ (#269)

This commit is contained in:
Ryan Rion 2016-05-02 19:55:15 -05:00 committed by leaf
parent b2df8e6fc0
commit 9302ef9657
2 changed files with 3 additions and 1 deletions

View File

@ -1,3 +1,5 @@
local unpack
unpack = require("moonscript.util").unpack
local parse_spec local parse_spec
parse_spec = function(spec) parse_spec = function(spec)
local flags, words local flags, words

View File

@ -1,4 +1,4 @@
import unpack from require "moonscript.util"
parse_spec = (spec) -> parse_spec = (spec) ->
flags, words = if type(spec) == "table" flags, words = if type(spec) == "table"
unpack(spec), spec unpack(spec), spec