Skip to content

Commit

Permalink
Interpreter: Fix mismatched parameter names
Browse files Browse the repository at this point in the history
  • Loading branch information
dscharrer committed Jun 25, 2018
1 parent 999405d commit 79fb4c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/util/cmdline/detail/Interpreter.h
Expand Up @@ -186,11 +186,11 @@ void interpreter<StringType, TypeCast>::do_add(const function_type & handler,

template <typename StringType, typename TypeCast>
template <typename It>
void interpreter<StringType, TypeCast>::invoke(const string_type & key,
void interpreter<StringType, TypeCast>::invoke(const string_type & option_name,
It & args_begin, It args_optend, It args_end,
type_cast_t & type_cast) const {

typename alt_name_t::const_iterator primary_key = alt_name.find(key);
typename alt_name_t::const_iterator primary_key = alt_name.find(option_name);

if(alt_name.end() == primary_key) {
throw error(error::cmd_not_found);
Expand Down

0 comments on commit 79fb4c4

Please sign in to comment.