Closed whikloj closed 8 years ago
You should change your option name. --target is heavily used by the sql-* commands, and those that build upon them
Thanks for the quick response. Is there a list of what names are not allowed when building your own commands, just in case we might have another defined elsewhere?
A good list is at drush_get_global_options(). In addition to those, you wont want to conflict with any commands which are invoked by your command. I suspect your command is calling a sql command and that's why you have a problem.
I apologize if this was answered, but I have not been able to locate a similar issue, bug, comment or request.
We have a bunch of drush commands that have worked under drush 5 and 6 but seems to die under drush 7 (I haven't tried drush 8).
The commands have an option named target and this seems to conflict with the option in the drush sql-connect.
See example drush command file here: https://github.com/Islandora/islandora_newspaper_batch/blob/7.x/islandora_newspaper_batch.drush.inc#L25
With drush 6.x-dev installed
But with drush 7.x-dev installed
Is this a configuration change and I have just missed a step or do we need to change our options to avoid any in the core of drush?
thanks!