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

joelstein created an issue. See original summary.

joelstein’s picture

Status: Active » Needs review
StatusFileSize
new563 bytes

steven jones’s picture

Status: Needs review » Fixed

Many thanks for the patch, perfect!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.