when doing:

drush autoadmin generate
--write

this message will appear:

// DEPRECATED: Allow command names to contain spaces.
// This feature will be removed shortly; drush-3 will
// require commands to be named with dashes instead of
// spaces (e.g. “cache-clear” instead of “cache clear”).
// During the transition period, uncomment the line below
// to allow commands with spaces to be used.

it was necessary to enable spaces in commands for a while by setting "allow-spaces-in-commands" in my drush configuration file.

best regards.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

DevElCuy’s picture

Confirmed, got same issue.

fcedillo’s picture

ignore this comment and attachment

fcedillo’s picture

I think the solution is to work on /modules/autoadmin/drush/autoadmin.drush.inc file

On line 41, I replace the following:

$items['autoadmin generate'] = array(

with:

$items['autoadmin-generate'] = array(

And results of drush autoadmin-generate bands bands countries --write command were as expected.

Below this comment you can find the patch to transform the autoadmin commands names to commands named with dashes.

_rune’s picture

Hi

Thx for the patch! Am on windsurfing class in Croatia a.t.m. and did only bring my phone. Sorry for being so slow with fixing this little issue! Back in a week.

Cheers
Rune

_rune’s picture

Status: Active » Closed (fixed)

Thx a lot, have applied the patch to my checkout, will commit a new version of Auto Admin later today and update the docs accordingly. Sorry for slowness!

If you want CVS access, let me now!

Cheers
Rune

fcedillo’s picture

hi _rune, let me help applying the patches. i would like CVS access for committing changes on patches :)

_rune’s picture

Thats super! Granting you access now.