options: Fix segfault on ingore_unknown

This commit is contained in:
zawz 2020-02-03 14:16:38 +01:00
parent 0be51b3671
commit eadcebff7f

View file

@ -248,7 +248,7 @@ std::vector<std::string> ztd::option_set::process(std::vector<std::string> argum
// add to ret if ignore
ropt += *it;
}
if(popt->takesArgument) // needs arg
else if(popt->takesArgument) // needs arg
{
i++;
if((*it).size()<=i) // finishes here