From ca9ccfe4301c4c78fbd4e737e952604e5fb810b1 Mon Sep 17 00:00:00 2001 From: codinget Date: Tue, 29 Dec 2020 17:09:33 +0100 Subject: [PATCH] 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 --- bin/moonc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/moonc b/bin/moonc index 015979a..e462d83 100755 --- a/bin/moonc +++ b/bin/moonc @@ -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("+")