diff --git a/src/parameters_parser.cc b/src/parameters_parser.cc index 68e15791..c6366a3c 100644 --- a/src/parameters_parser.cc +++ b/src/parameters_parser.cc @@ -31,7 +31,7 @@ ParametersParser::ParametersParser(ParameterList params, { ++i; if (i == params.size() or params[i][0] == '-') - throw missing_option_value(params[i]); + throw missing_option_value(it->first); } } else