wp-cli / language-command

Installs, activates, and manages language packs.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`language plugin list` for bad plugin slugs should throw warning

vielhuber opened this issue · comments

Hello!

When I type

wp language plugin list foobar

I always get an output:

image

I can write anything I want:

image

This should not be the case :-)

A candidate for good-first-issue ?

Should return a nice error.

Ah, it looks like this is a combination of the command not checking for the plugin's existence and WP Core always having a default language for anything.

I guess we should throw warnings for missing plugins and skip them, which would then end up with an empty list if no valid plugin slugs were provided.

I'll take a look at this