Drush 5.x, running drush provision-save with the following options produces this error

drush provision-save '@www.domain-name.com' --context_type='site' --uri='www.domain-name.com' --platform='@platform_Drupal712' --server='@server_master' --db_server='@server_master' --profile='standard' --client_name='admin' --aliases='dev.domain-name.com, test.domain-name.com'

Unknown options: --context_type, --platform, --server, --db_server, --profile, --client_name, --aliases.  See `drush help provision-save` for available options. To suppress this error, add the option --strict=0.

Only the --uri option is recognized, and if I run
drush provision-save '@www.domain-name.com' --uri='www.domain-name.com'
I do get the expected results: ~/.drush/www.domain-name.com.alias.drushrc.php

if I suppress with --strict=0, I get no results, no alias file

Comments

Lowell’s picture

I've installed drush 4.5 and now the above script works as expected

greg.1.anderson’s picture

Project: Drush » Provision
Version: » 7.x-2.x-dev
Component: Core Commands » Code
Status: Active » Postponed

In Drush-5, commands must declare all of their options in help, as any missing options will cause errors as described above.

Aegir on Drush-5 is presently blocked, waiting on #1433556: Aegir wants the drush_backend_fork capability restored..

Steven Jones’s picture

Version: 7.x-2.x-dev » 6.x-1.x-dev
Steven Jones’s picture

Version: 6.x-1.x-dev » 6.x-2.x-dev
Priority: Normal » Major
Status: Postponed » Active

This is because the options are documented incorrectly in provision. They are specified with a prefix of '--', but Drush 5 will add this for us, so we can remove that and then it starts working!

Steven Jones’s picture

Status: Active » Fixed

Thanks for the bug report, fixed in 6.x-2.x.

Status: Fixed » Closed (fixed)

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

  • Commit 14f9df0 on dev-drupal-8, 6.x-2.x, dev-ssl-ip-allocation-refactor, dev-1205458-move_sites_out_of_platforms, 7.x-3.x, dev-subdir-multiserver, 6.x-2.x-backports, dev-helmo-3.x by Steven Jones:
    Issue #1471928 by Steven Jones: Fixed provision-save: Unknown options...