When running "drush help imageapi-optimize -v" a notice is thrown in drush:
Undefined index: description command.inc:1296
This is caused by the way the imageapi-optimize drush command defines it's argument:
function imageapi_optimize_drush_command() {
$commands['imageapi-optimize'] = array(
'arguments' => array(
// This is the problem.
'path' => array(
dt('The path of a single image or directory of images to optimize.'),
),
),
);
}
Either the 'path' argument needs to be a simple 'key' => 'description' value, or the array needs to be indexed with a 'description' key. For example:
function imageapi_optimize_drush_command() {
$commands['imageapi-optimize'] = array(
'arguments' => array(
'path' => dt('The path of a single image or directory of images to optimize.'),
),
);
}
Comments
Comment #2
joelstein commentedComment #4
steven jones commentedMany thanks for the patch, perfect!