Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validate the --target-bundle option of field:create #4912

Closed
DieterHolvoet opened this issue Dec 3, 2021 · 0 comments · Fixed by #5116
Closed

Validate the --target-bundle option of field:create #4912

DieterHolvoet opened this issue Dec 3, 2021 · 0 comments · Fixed by #5116

Comments

@DieterHolvoet
Copy link
Contributor

Describe the bug
This is a follow-up based on this comment: #4853 (comment). We should validate whether values passed to --target-bundle are actually valid bundles.

To Reproduce
Pass a random string to --target-bundle.

Expected behavior
Show an error message if the passed value isn't a valid bundle.

Actual behavior
No error message is shown.

Workaround
/

System Configuration

Q A
Drush version? 11.x
Drupal version? 9.x
PHP version 8.x
OS? Mac

Additional information
/

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 a pull request may close this issue.

1 participant