mirror of
https://github.com/leafo/moonscript.git
synced 2024-11-22 02:44:23 +00:00
force - to be the only argument
This commit is contained in:
parent
f04ae47efb
commit
7de31c59d3
@ -24,6 +24,11 @@ local read_stdin = arg[1] == "-" -- luacheck: ignore 113
|
||||
|
||||
if not read_stdin then
|
||||
parser:argument("file/directory"):args("+")
|
||||
else
|
||||
if arg[2] ~= nil then
|
||||
io.stderr:write("- must be the only argument\n")
|
||||
os.exit(1)
|
||||
end
|
||||
end
|
||||
|
||||
local opts = read_stdin and {} or parser:parse()
|
||||
|
Loading…
Reference in New Issue
Block a user