mirror of
https://github.com/OMGeeky/google-apis-rs.git
synced 2026-02-23 15:49:49 +01:00
fix(CLI): completed list of parameter names
Previously the 'did-you-mean' functionality only knew the global paramters, but not the method-local ones.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user