Commit 97b6265ceef94caa1d73cb5305d74b11043cf510
Committed by
GitHub
1 parent
46f192bb
Dropping check for size in test (not needed anymore)
Showing
1 changed file
with
0 additions
and
2 deletions
tests/NewParseTest.cpp
| ... | ... | @@ -9,8 +9,6 @@ using cx = std::complex<double>; |
| 9 | 9 | CLI::Option * |
| 10 | 10 | add_option(CLI::App &app, std::string name, cx &variable, std::string description = "", bool defaulted = false) { |
| 11 | 11 | CLI::callback_t fun = [&variable](CLI::results_t res) { |
| 12 | - if(res.size() != 2) | |
| 13 | - return false; | |
| 14 | 12 | double x, y; |
| 15 | 13 | bool worked = CLI::detail::lexical_cast(res[0], x) && CLI::detail::lexical_cast(res[1], y); |
| 16 | 14 | if(worked) | ... | ... |