mirror of
https://github.com/leafo/moonscript.git
synced 2024-11-22 02:44:23 +00:00
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:
parent
29d8ccc53f
commit
ca9ccfe430
@ -20,7 +20,7 @@ parser:mutex(
|
||||
parser:flag("-",
|
||||
"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
|
||||
parser:argument("file/directory"):args("+")
|
||||
|
Loading…
Reference in New Issue
Block a user