Skip to content

Mimic language import options from core import form#10

Open
goechsler wants to merge 1 commit into
dawehner:8.x-1.xfrom
goechsler:8.x-1.x
Open

Mimic language import options from core import form#10
goechsler wants to merge 1 commit into
dawehner:8.x-1.xfrom
goechsler:8.x-1.x

Conversation

@goechsler

Copy link
Copy Markdown

I added some options to be able to perform tasks like I would do on the core import form.

In order to avoid breaking bc with the current behavior I defaulted the --customized option to TRUE, which leads to the weird usage to turn it off on demand :/

Comment thread drush_language.drush.inc
// Evaluate overwriting options.
$replace_customized = (NULL !== drush_get_option('replace-customized'));
$replace_non_customized = (NULL !== drush_get_option('replace-non-customized'));
if (NULL !== drush_get_option('replace-customized')) {

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't you provide a default value when using drush_get_option? This could simplify the new code a bit. Maybe i'm just entirely wrong

@dawehner

Copy link
Copy Markdown
Owner

Note: the project got merged back into drupal.org

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants