Skip to content

Commit ca9ccfe

Browse files
authored
Theoretically fix - flag for moonc
`moonc` currently tells argparse to expect `-`, but actually checks for `--` on the cli, which breaks `moonc -`; this should in theory fix this
1 parent 29d8ccc commit ca9ccfe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/moonc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ parser:mutex(
2020
parser:flag("-",
2121
"Read from standard in, print to standard out (Must be only argument)")
2222

23-
local read_stdin = arg[1] == "--" -- luacheck: ignore 113
23+
local read_stdin = arg[1] == "-" -- luacheck: ignore 113
2424

2525
if not read_stdin then
2626
parser:argument("file/directory"):args("+")

0 commit comments

Comments
 (0)