private function printPermissionSummary($options, $heading = '') {
    // Print permission info.
    if (!empty($options)) {
      drush_print("{$heading}");

      foreach ($options as $role => $perms) {
        foreach ($options[$role] as &$grant) {
          $grant = ($grant == 0) ? dt('revoke') : dt('grant');
        }

        drush_print($role, 1);
        drush_print_format([$options[$role]], 'key-value-list');
      }
    }
  }