Closed (fixed)
Project:
Provision
Version:
6.x-2.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
7 Mar 2012 at 16:47 UTC
Updated:
12 Jun 2014 at 08:41 UTC
Jump to comment: Most recent
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
Comment #1
Lowell commentedI've installed drush 4.5 and now the above script works as expected
Comment #2
greg.1.anderson commentedIn 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..
Comment #3
steven jones commentedComment #4
steven jones commentedThis 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!
Comment #5
steven jones commentedThanks for the bug report, fixed in 6.x-2.x.