xwp / wp-cli-ssh

[OBSOLETE] Seamlessly run WP-CLI commands on a remote server via SSH
157 stars 14 forks source link

camelCase Parameters are returning Error #33

Closed emilushi closed 7 years ago

emilushi commented 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

But the below command works perfectly: wp comand_name indexes set_settings --name=algolia_index_name --searchable_attributes=title

Any help will be appreciated.