diff --git a/moonscript/cmd/args.lua b/moonscript/cmd/args.lua index 1f76000..68b06fd 100644 --- a/moonscript/cmd/args.lua +++ b/moonscript/cmd/args.lua @@ -1,3 +1,5 @@ +local unpack +unpack = require("moonscript.util").unpack local parse_spec parse_spec = function(spec) local flags, words diff --git a/moonscript/cmd/args.moon b/moonscript/cmd/args.moon index 5bcbe37..ac65c0e 100644 --- a/moonscript/cmd/args.moon +++ b/moonscript/cmd/args.moon @@ -1,4 +1,4 @@ - +import unpack from require "moonscript.util" parse_spec = (spec) -> flags, words = if type(spec) == "table" unpack(spec), spec