From afd4e3280966b37190074b28039a30ced7402647 Mon Sep 17 00:00:00 2001 From: Henry Fredrick Schreiner Date: Sun, 26 Nov 2017 06:47:50 -0500 Subject: [PATCH] Dropping unneeded check --- include/CLI/App.hpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/include/CLI/App.hpp b/include/CLI/App.hpp index 322c5763..a287536e 100644 --- a/include/CLI/App.hpp +++ b/include/CLI/App.hpp @@ -576,8 +576,6 @@ class App { std::string simple_name = CLI::detail::split(name, ',').at(0); CLI::callback_t fun = [&variable, simple_name, label](results_t res) { - if(res.size() != 2) - throw ConversionError(simple_name + " is " + label + " which must have two values"); double x, y; bool worked = detail::lexical_cast(res[0], x) && detail::lexical_cast(res[1], y); if(worked)