From 8764ae2aad4aa82f49a9b384eae4f61fecfe25c6 Mon Sep 17 00:00:00 2001 From: midipix Date: May 23 2018 03:57:03 +0000 Subject: argv: argv_scan(): properly handle optional argument values of short options. --- diff --git a/src/internal/argv/argv.h b/src/internal/argv/argv.h index de05c70..c87ae4c 100644 --- a/src/internal/argv/argv.h +++ b/src/internal/argv/argv.h @@ -380,6 +380,8 @@ static void argv_scan( fval = false; else if (ch && is_last_option(ch)) fval = false; + else if (fnext) + fval = false; else fval = ch; }