We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f04ae47 commit 7de31c5Copy full SHA for 7de31c5
bin/moonc
@@ -24,6 +24,11 @@ local read_stdin = arg[1] == "-" -- luacheck: ignore 113
24
25
if not read_stdin then
26
parser:argument("file/directory"):args("+")
27
+else
28
+ if arg[2] ~= nil then
29
+ io.stderr:write("- must be the only argument\n")
30
+ os.exit(1)
31
+ end
32
end
33
34
local opts = read_stdin and {} or parser:parse()
0 commit comments