Has the way to declare an extra option for an existing command changed? I want to add an extra option
Adding the option in
hook_drush_help_alter() used to work.
It still lists the option when doing a
drush sql-santize —help but executing the command with the option just results in "Unknown option!” (adding
—strict=0 works though).
~ ಠ_ಠ $ composer global require drush/drush:dev-master Changed current directory to /Users/matt.andrade/.composer ./composer.json has been updated Loading composer repositories with package information Updating dependencies (including require-dev) Your requirements could not be resolved to an installable set of packages. Problem 1 - Installation request for drush/drush dev-master -> satisfiable by drush/drush[dev-master]. - drush/drush dev-master requires codegyre/robo ~1.0.0-beta1 -> satisfiable by codegyre/robo[1.0.0-beta1] but these conflict with your requirements or minimum-stability. Installation failed, reverting ./composer.json to its original content.
I am running Drush 9.0.0-rc1 in project but it seems I am running out of memory. The global php.ini is setting memory_limit to 32M. I have tried changing this limit on the command line with:
php -d memory_limit=512M ../vendor/bin/drush --php-options=memory_limit=512M status <drush command>
and with a copy of the php.ini with the memory_limit set to 512M using:
php -c ~/.drush/php.ini ../vendor/bin/drush -c ~/.drush/php.ini <drush command>.
If I run the
php:cli drush command using the above two line then run
phpinfo(); I see that memory_limit is set to 512M.
status drush command using the line above that sets the php.ini file I see that it is reporting that it is using '~/.drush/php.ini'
However, here is the kicker when I run the
updb drush command using either of the two lines above I get the following error:
[error] Drush command terminated abnormally due to an unrecoverable error.
Error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 8192 bytes) in /home/meosch/l2m.ch-test/releases/20171229-022429/docroot/core/lib/Drupal/Core/Extension/InfoParserDynamic.php, line 22
[error] The external command could not be executed due to an application error.
Does anyone know what I am doing wrong or how to make this work?
-nwhich was short option for "answer no to all questions" in Drush 8. Now in Drush 9 it is used as the short option for
--no-interaction. I am glad the last couple of time when I used
--noin wasn't anything major. So much for a short form for no now as now there is only the long option. Not sure that was thought through very well, either that or using
-nas the no option a long time ago.
drush pm:listfeature where you could add a module name after the command to get information about just that command?
drush pml |grep module_name. Anyone have something better / shorter than that?