Problem/Motivation

Drush commands do not accept options.

Steps to reproduce

drush ecdl:dlet paragraph en --preserve-languages=en
Prints The "--preserve-languages" option does not accept a value.

drush ecdl:dlet paragraph en --preserve-legacy-default-language=TRUE
Prints The "--preserve-legacy-default-language" option does not accept a value.

The same for ecdl:cdl command.

Environment: Drupal 10.4. Drush 12.4.3.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

sinn created an issue. See original summary.

sinn’s picture

Status: Active » Needs review
StatusFileSize
new65 bytes

MR and patch is available for review.

sinn’s picture

StatusFileSize
new3.07 KB

MR and patch is available for review.

sinn’s picture

nginex’s picture

Version: 1.0.1 » 1.x-dev
Status: Needs review » Reviewed & tested by the community

Patch works like a charm, thanks

facine made their first commit to this issue’s fork.

  • facine committed 47e2ba70 on 1.x authored by sinn
    Issue #3499979: Accept options in drush commands.
    
facine’s picture

Status: Reviewed & tested by the community » Fixed

Merged, thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

nginex’s picture

Hi @facine,

The patch was working fine, but your change ruined it https://git.drupalcode.org/project/entity_change_default_language/-/merg..., so it stopped working

Could you please revert your commit and create a new release? because latest release currently does not work.

Besides, you can't just use 'bundle' in the query condition as in different entity types it's different, get it dynamically from the entity type as entity key