Skip to content

Commit 7de31c5

Browse files
committed
force - to be the only argument
1 parent f04ae47 commit 7de31c5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

bin/moonc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ local read_stdin = arg[1] == "-" -- luacheck: ignore 113
2424

2525
if not read_stdin then
2626
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
2732
end
2833

2934
local opts = read_stdin and {} or parser:parse()

0 commit comments

Comments
 (0)