Closed emilushi closed 7 years ago
I have created a custom command for setting Algolia search settings but facing a wired problem with associated arguments. When I set the argument as camelCase as they are on Algolia, wp cli command doesn't work.
Example:
wp comand_name indexes set_settings --name=algolia_index_name --searchableAttributes=title the above command returns: Error: Parameter errors: unknown --searchable_Attributes parameter
wp comand_name indexes set_settings --name=algolia_index_name --searchableAttributes=title
Error: Parameter errors: unknown --searchable_Attributes parameter
But the below command works perfectly: wp comand_name indexes set_settings --name=algolia_index_name --searchable_attributes=title
wp comand_name indexes set_settings --name=algolia_index_name --searchable_attributes=title
Any help will be appreciated.
I have created a custom command for setting Algolia search settings but facing a wired problem with associated arguments. When I set the argument as camelCase as they are on Algolia, wp cli command doesn't work.
Example:
wp comand_name indexes set_settings --name=algolia_index_name --searchableAttributes=title
the above command returns:Error: Parameter errors: unknown --searchable_Attributes parameter
But the below command works perfectly:
wp comand_name indexes set_settings --name=algolia_index_name --searchable_attributes=title
Any help will be appreciated.