From c7320e450ff0319b920fef29af0eb59d79f2fbc5 Mon Sep 17 00:00:00 2001 From: Caleb Maclennan Date: Fri, 2 Jun 2023 23:32:22 +0300 Subject: [PATCH] chore(cli): Restore access to REPL broken my multi-input changes --- core/cli.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/cli.lua b/core/cli.lua index fcc3fae12..9f070dd55 100644 --- a/core/cli.lua +++ b/core/cli.lua @@ -42,7 +42,7 @@ cli.parseArguments = function () local code = parse_err:match("^Usage:") and 0 or 1 os.exit(code) end - if opts.INPUTS then + if opts.INPUTS and #opts.INPUTS > 0 then local has_input_filename = false pl.tablex.foreachi(opts.INPUTS, function (v, k) if v == "STDIO" then