mirror of
https://github.com/leafo/moonscript.git
synced 2024-11-22 02:44:23 +00:00
moonscript/cmd/args.moon: fix unpack()
Lua 5.2+ (#269)
This commit is contained in:
parent
b2df8e6fc0
commit
9302ef9657
@ -1,3 +1,5 @@
|
||||
local unpack
|
||||
unpack = require("moonscript.util").unpack
|
||||
local parse_spec
|
||||
parse_spec = function(spec)
|
||||
local flags, words
|
||||
|
@ -1,4 +1,4 @@
|
||||
|
||||
import unpack from require "moonscript.util"
|
||||
parse_spec = (spec) ->
|
||||
flags, words = if type(spec) == "table"
|
||||
unpack(spec), spec
|
||||
|
Loading…
Reference in New Issue
Block a user