Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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 CreditAttribution: Lowell commentedI've installed drush 4.5 and now the above script works as expected
Comment #2
greg.1.anderson CreditAttribution: 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 CreditAttribution: Steven Jones commentedComment #4
Steven Jones CreditAttribution: 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 CreditAttribution: Steven Jones commentedThanks for the bug report, fixed in 6.x-2.x.