We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 74e1e55 commit 2a0e0d7Copy full SHA for 2a0e0d7
1 file changed
bin/moonc
@@ -26,7 +26,7 @@ parser:flag("-",
26
local read_stdin = arg[1] == "-" -- luacheck: ignore 113
27
28
if not read_stdin then
29
- parser:argument("file/directory"):args("+")
+ parser:argument("file/directory"):args("*")
30
else
31
if arg[2] ~= nil then
32
io.stderr:write("- must be the only argument\n")
@@ -42,6 +42,11 @@ if opts.version then
42
os.exit()
43
end
44
45
+if not read_stdin and #opts["file/directory"] == 0 then
46
+ io.stderr:write(parser:get_help())
47
+ os.exit()
48
+end
49
+
50
function log_msg(...)
51
if not opts.p then
52
io.stderr:write(table.concat({...}, " ") .. "\n")
0 commit comments