Commit 53161443 authored by git's avatar git Committed by ergonlogic

Issue #2557025 by tom_spiers: Fix `Unknown option: --profile.` errors.

parent b7c83092
...@@ -114,6 +114,7 @@ function provision_drush_command() { ...@@ -114,6 +114,7 @@ function provision_drush_command() {
'client_email' => dt('The email address of the client to use.'), 'client_email' => dt('The email address of the client to use.'),
'profile' => dt('The profile to use when installing the site.'), 'profile' => dt('The profile to use when installing the site.'),
), ),
'allow-additional-options' => TRUE,
'bootstrap' => DRUSH_BOOTSTRAP_DRUPAL_ROOT 'bootstrap' => DRUSH_BOOTSTRAP_DRUPAL_ROOT
); );
...@@ -122,6 +123,7 @@ function provision_drush_command() { ...@@ -122,6 +123,7 @@ function provision_drush_command() {
'options' => array( 'options' => array(
'client_email' => dt('The email address of the client to use.'), 'client_email' => dt('The email address of the client to use.'),
), ),
'allow-additional-options' => TRUE,
'hidden' => TRUE, 'hidden' => TRUE,
'bootstrap' => DRUSH_BOOTSTRAP_DRUPAL_SITE 'bootstrap' => DRUSH_BOOTSTRAP_DRUPAL_SITE
); );
...@@ -131,6 +133,7 @@ function provision_drush_command() { ...@@ -131,6 +133,7 @@ function provision_drush_command() {
'options' => array( 'options' => array(
'client_email' => dt('The email address of the client to use.'), 'client_email' => dt('The email address of the client to use.'),
), ),
'allow-additional-options' => TRUE,
'examples' => array( 'examples' => array(
'drush @site provision-import' => 'Import the site as defined by the site Drush alias generated with provision-save.', 'drush @site provision-import' => 'Import the site as defined by the site Drush alias generated with provision-save.',
), ),
...@@ -140,6 +143,7 @@ function provision_drush_command() { ...@@ -140,6 +143,7 @@ function provision_drush_command() {
$items['provision-backup'] = array( $items['provision-backup'] = array(
'optional arguments' => array('backup-file' => dt('The file to save the backup to. This will be a gzipped tarball.')), 'optional arguments' => array('backup-file' => dt('The file to save the backup to. This will be a gzipped tarball.')),
'description' => dt('Generate a back up for the site.'), 'description' => dt('Generate a back up for the site.'),
'allow-additional-options' => TRUE,
'examples' => array( 'examples' => array(
'drush @site provision-backup' => 'Back up the site as defined by the site Drush alias generated with provision-save.', 'drush @site provision-backup' => 'Back up the site as defined by the site Drush alias generated with provision-save.',
), ),
...@@ -148,6 +152,7 @@ function provision_drush_command() { ...@@ -148,6 +152,7 @@ function provision_drush_command() {
$items['provision-enable'] = array( $items['provision-enable'] = array(
'description' => 'Enable a disabled site.', 'description' => 'Enable a disabled site.',
'allow-additional-options' => TRUE,
'examples' => array( 'examples' => array(
'drush @site provision-enable' => 'Enable the site as defined by the site Drush alias generated with provision-save.', 'drush @site provision-enable' => 'Enable the site as defined by the site Drush alias generated with provision-save.',
), ),
...@@ -156,6 +161,7 @@ function provision_drush_command() { ...@@ -156,6 +161,7 @@ function provision_drush_command() {
$items['provision-disable'] = array( $items['provision-disable'] = array(
'arguments' => array('domain.com' => dt('The domain of the site to disable (only if disabled).')), 'arguments' => array('domain.com' => dt('The domain of the site to disable (only if disabled).')),
'description' => 'Disable a site.', 'description' => 'Disable a site.',
'allow-additional-options' => TRUE,
'examples' => array( 'examples' => array(
'drush @site provision-disable' => 'Disable the site as defined by the site Drush alias generated with provision-save.', 'drush @site provision-disable' => 'Disable the site as defined by the site Drush alias generated with provision-save.',
), ),
...@@ -194,6 +200,7 @@ function provision_drush_command() { ...@@ -194,6 +200,7 @@ function provision_drush_command() {
'description' => dt('Push the site specific files directory to a slave. This overrides the slaves authority.'), 'description' => dt('Push the site specific files directory to a slave. This overrides the slaves authority.'),
), ),
), ),
'allow-additional-options' => TRUE,
'bootstrap' => DRUSH_BOOTSTRAP_DRUSH 'bootstrap' => DRUSH_BOOTSTRAP_DRUSH
); );
...@@ -201,6 +208,7 @@ function provision_drush_command() { ...@@ -201,6 +208,7 @@ function provision_drush_command() {
'description' => 'Restore the site to a previous backup. This will also generate a backup of the site as it was.', 'description' => 'Restore the site to a previous backup. This will also generate a backup of the site as it was.',
'arguments' => array( 'arguments' => array(
'site_backup.tar.gz' => dt('The backup to restore the site to.')), 'site_backup.tar.gz' => dt('The backup to restore the site to.')),
'allow-additional-options' => TRUE,
'examples' => array( 'examples' => array(
'drush @site provision-restore ~/backups/some_site.tar.gz' => 'Restore the site to the backup in ~/backups/some_site.tar.gz.', 'drush @site provision-restore ~/backups/some_site.tar.gz' => 'Restore the site to the backup in ~/backups/some_site.tar.gz.',
), ),
...@@ -214,6 +222,7 @@ function provision_drush_command() { ...@@ -214,6 +222,7 @@ function provision_drush_command() {
'options' => array( 'options' => array(
'old_uri' => dt('Old site uri to replace in references to sites/example.com/files/ in the database content.)'), 'old_uri' => dt('Old site uri to replace in references to sites/example.com/files/ in the database content.)'),
), ),
'allow-additional-options' => TRUE,
'examples' => array( 'examples' => array(
'drush @site provision-deploy ~/backups/some_site.tar.gz' => 'Deploy the site as defined by the site Drush alias, from the backup in ~/backups/some_site.tar.gz.', 'drush @site provision-deploy ~/backups/some_site.tar.gz' => 'Deploy the site as defined by the site Drush alias, from the backup in ~/backups/some_site.tar.gz.',
), ),
...@@ -226,6 +235,7 @@ function provision_drush_command() { ...@@ -226,6 +235,7 @@ function provision_drush_command() {
'@platform_name' => dt('The Drush alias of the platform.')), '@platform_name' => dt('The Drush alias of the platform.')),
'options' => array( 'options' => array(
'profile' => dt('The Drupal profile to use.')), 'profile' => dt('The Drupal profile to use.')),
'allow-additional-options' => TRUE,
'examples' => array( 'examples' => array(
'drush @site provision-migrate @platform_name' => 'Migrate the site as defined by the Drush alias, to the platform as defined by the platform\'s Drush alias', 'drush @site provision-migrate @platform_name' => 'Migrate the site as defined by the Drush alias, to the platform as defined by the platform\'s Drush alias',
), ),
...@@ -239,6 +249,7 @@ function provision_drush_command() { ...@@ -239,6 +249,7 @@ function provision_drush_command() {
'@platform_name' => dt('The Drush alias of the platform to clone the site onto.')), '@platform_name' => dt('The Drush alias of the platform to clone the site onto.')),
'options' => array( 'options' => array(
'profile' => dt('The Drupal profile to use.')), 'profile' => dt('The Drupal profile to use.')),
'allow-additional-options' => TRUE,
'examples' => array( 'examples' => array(
'drush @site provision-clone @new_site @platform_name' => 'Clone the original site to the new site on a platform', 'drush @site provision-clone @new_site @platform_name' => 'Clone the original site to the new site on a platform',
), ),
...@@ -249,6 +260,7 @@ function provision_drush_command() { ...@@ -249,6 +260,7 @@ function provision_drush_command() {
'description' => 'Delete a site or platform.', 'description' => 'Delete a site or platform.',
'options' => array( 'options' => array(
'force' => dt('Force deletion.')), 'force' => dt('Force deletion.')),
'allow-additional-options' => TRUE,
'examples' => array( 'examples' => array(
'drush @site provision-delete' => 'Delete the site as defined by the site Drush alias generated with provision-save.', 'drush @site provision-delete' => 'Delete the site as defined by the site Drush alias generated with provision-save.',
), ),
...@@ -257,6 +269,7 @@ function provision_drush_command() { ...@@ -257,6 +269,7 @@ function provision_drush_command() {
$items['provision-login-reset'] = array( $items['provision-login-reset'] = array(
'description' => 'Generate a one-time login reset URL.', 'description' => 'Generate a one-time login reset URL.',
'allow-additional-options' => TRUE,
'examples' => array( 'examples' => array(
'drush @site provision-login-reset' => 'Generate a one-time login reset URL for the site as defined by the site Drush alias generated with provision-save.', 'drush @site provision-login-reset' => 'Generate a one-time login reset URL for the site as defined by the site Drush alias generated with provision-save.',
), ),
...@@ -269,6 +282,7 @@ function provision_drush_command() { ...@@ -269,6 +282,7 @@ function provision_drush_command() {
'examples' => array( 'examples' => array(
'drush @site provision-backup-delete /path/to/site_backup.tgz' => 'Delete a backup of this site as defined by the site Drush alias generated with provision-save.', 'drush @site provision-backup-delete /path/to/site_backup.tgz' => 'Delete a backup of this site as defined by the site Drush alias generated with provision-save.',
), ),
'allow-additional-options' => TRUE,
'bootstrap' => DRUSH_BOOTSTRAP_DRUSH 'bootstrap' => DRUSH_BOOTSTRAP_DRUSH
); );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment