Commit afd4e3280966b37190074b28039a30ced7402647

Authored by Henry Fredrick Schreiner
1 parent 3d309dc0

Dropping unneeded check

Showing 1 changed file with 0 additions and 2 deletions
include/CLI/App.hpp
... ... @@ -576,8 +576,6 @@ class App {
576 576  
577 577 std::string simple_name = CLI::detail::split(name, ',').at(0);
578 578 CLI::callback_t fun = [&variable, simple_name, label](results_t res) {
579   - if(res.size() != 2)
580   - throw ConversionError(simple_name + " is " + label + " which must have two values");
581 579 double x, y;
582 580 bool worked = detail::lexical_cast(res[0], x) && detail::lexical_cast(res[1], y);
583 581 if(worked)
... ...