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
This commit is contained in:
codinget 2020-12-29 17:09:33 +01:00 committed by GitHub
parent 29d8ccc53f
commit ca9ccfe430
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,7 +20,7 @@ parser:mutex(
parser:flag("-", parser:flag("-",
"Read from standard in, print to standard out (Must be only argument)") "Read from standard in, print to standard out (Must be only argument)")
local read_stdin = arg[1] == "--" -- luacheck: ignore 113 local read_stdin = arg[1] == "-" -- luacheck: ignore 113
if not read_stdin then if not read_stdin then
parser:argument("file/directory"):args("+") parser:argument("file/directory"):args("+")