diff --git a/lib/options.cpp b/lib/options.cpp index ef9c59df14..7373a1f881 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);