wp-cli / ideas

💡 Ideas and feature requests are collected here
40 stars 1 forks source link

Add `wp plugin list --status=<status>` status validation to prevent mistakes #142

Closed waclawjacek closed 4 years ago

waclawjacek commented 4 years ago

Hey!

I suggest adding validation to what is passed as the status argument in wp plugin list --status=<status>. It seems like at the moment you can input anything.

This will prevent situations where e.g. someone inputs wp plugin list --status=network-active instead of wp plugin list --status=active-network and gets an empty list because there is no such status as "active-network" (not to mention completely nonexistent statuses).

waclawjacek commented 4 years ago

I have opened this issue in the wrong repository! My apologies.

I have reposted the issue here: https://github.com/wp-cli/extension-command/issues/215