gtg092x / node-wp-cli

Node JS Wrapper for the Wordpress CLI
MIT License
40 stars 14 forks source link

Can't run Update Command #1

Closed tybruffy closed 10 years ago

tybruffy commented 10 years ago

There doesn't seem to be any way to run a command that has args but doesn't use flags.

wp option update blogdescription "New Description"

is a valid wp-cli command. Not sure there's anyway to get that to run in node-qp-cli.

wp.option.update("blogdescription", "New Description", cb)

That command throws an error in utils.js on line 33, where it attempts to get the object keys from the second argument. If it is an object, you get something like

wp option update blogdescription --value="New Description"

which is invalid.