options: fix single char ignore_unknown
This commit is contained in:
parent
eadcebff7f
commit
b4ab1a37d6
1 changed files with 1 additions and 1 deletions
|
|
@ -246,7 +246,7 @@ std::vector<std::string> ztd::option_set::process(std::vector<std::string> argum
|
|||
if(!ignore_unknown)
|
||||
throw ztd::option_error(ztd::option_error::unknown_option, std::string("-") + (*it)[i] );
|
||||
// add to ret if ignore
|
||||
ropt += *it;
|
||||
ropt += (*it)[i];
|
||||
}
|
||||
else if(popt->takesArgument) // needs arg
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue