From cef280fad37571ca94c01540e9ff9ce54fe03ba9 Mon Sep 17 00:00:00 2001 From: Jarryd Beck Date: Tue, 28 May 2019 08:13:03 +1000 Subject: [PATCH] Remove some unreachable code. Fixes #175. This was broken when throwing an exception on missing positional parameters in #169. --- include/cxxopts.hpp | 1 - 1 file changed, 1 deletion(-) diff --git a/include/cxxopts.hpp b/include/cxxopts.hpp index 0c90c03..a19d8bb 100644 --- a/include/cxxopts.hpp +++ b/include/cxxopts.hpp @@ -1663,7 +1663,6 @@ ParseResult::consume_positional(std::string a) { throw option_not_exists_exception(*m_next_positional); } - ++m_next_positional; } return false;