Skip to content

Commit

Permalink
fix(CLI): completed list of parameter names
Browse files Browse the repository at this point in the history
Previously the 'did-you-mean' functionality only knew the global
paramters, but not the method-local ones.
  • Loading branch information
Byron committed May 5, 2015
1 parent bbab1f2 commit 9274938
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mako/cli/lib/engine.mako
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ ${value_unwrap}\
call = call.${ADD_PARAM_FN}(map.iter().find(|t| t.0 == key).unwrap_or(&("", key)).1, ${value_unwrap})
},
% endif # handle global parameters
_ => err.issues.push(CLIError::UnknownParameter(key.to_string(), ${field_vec(global_parameter_names)})),
_ => err.issues.push(CLIError::UnknownParameter(key.to_string(), ${field_vec(global_parameter_names + [p.name for p in optional_props])})),
}
}
% endif # handle call parameters
Expand Down

0 comments on commit 9274938

Please sign in to comment.