WSL/SLF GitLab Repository

Commit 1db5bb38 authored by Mathias Bavay's avatar Mathias Bavay
Browse files

Improved arguments parsing

parent 2cee99b5
......@@ -72,8 +72,8 @@ void ProcUndercatch_Hamon::process(const unsigned int& param, const std::vector<
void ProcUndercatch_Hamon::parse_args(std::vector<std::string> filter_args)
{
if (filter_args.empty())
throw InvalidArgumentException("Wrong number of arguments for filter " + getName(), AT);
if (filter_args.size()!=1)
throw InvalidArgumentException("Wrong number of arguments for filter " + getName() + ", please provide the rain gauge type!", AT);
for(size_t ii=0; ii<filter_args.size(); ii++) {
IOUtils::toLower(filter_args[ii]);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment