1
0
forked from Alepha/Alepha

Fix typo in options code.

This commit is contained in:
2023-11-09 14:28:52 -05:00
parent 25b9cf0ac8
commit 6a77318df8

View File

@ -290,7 +290,7 @@ namespace Alepha::Hydrogen ::detail:: ProgramOptions_m
// TODO: This should steal the impl from the vector form, above, and that should defer to this.
using parse_type= typename arg_type::value_type;
auto handler= [handler, name= name]( std::optional< std::string > argument )
auto wrapped= [handler, name= name]( std::optional< std::string > argument )
{
impl::checkArgument( argument, name );
@ -311,7 +311,7 @@ namespace Alepha::Hydrogen ::detail:: ProgramOptions_m
};
handler( parsed );
};
return registerHandler( handler );
return registerHandler( wrapped );
}
else
{