From 9642317b081cf115c885906210d4d63ccf68d1f6 Mon Sep 17 00:00:00 2001 From: Baptiste Wicht Date: Tue, 28 Oct 2014 21:36:33 +0100 Subject: [PATCH] Fix implicit and short --- src/cxxopts.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/cxxopts.hpp b/src/cxxopts.hpp index 8562966..ed93ffd 100644 --- a/src/cxxopts.hpp +++ b/src/cxxopts.hpp @@ -1022,6 +1022,10 @@ Options::parse(int& argc, char**& argv) { checked_parse_arg(argc, argv, current, value, name); } + else if (value->value().has_implicit()) + { + parse_option(value, name, ""); + } else { //error