From c22837b31379edcee5502d65b6a2de60f9fc1952 Mon Sep 17 00:00:00 2001 From: fruffy Date: Fri, 26 Jan 2024 16:01:08 -0500 Subject: [PATCH] Fix compiler stdin. --- lib/options.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/options.cpp b/lib/options.cpp index ef9c59df146..7373a1f8816 100644 --- a/lib/options.cpp +++ b/lib/options.cpp @@ -67,7 +67,7 @@ std::vector *Util::Options::process(int argc, char *const argv[]) usage(); return nullptr; } - } else if (opt.startsWith("-")) { + } else if (opt.startsWith("-") && opt.size() > 1) { // Support GCC-style long options that begin with a single '-'. option = get(options, opt);