10quality / wpmvc-commands

Ayuco commands for Wordpress MVC,
MIT License
2 stars 4 forks source link

Bail if no value provided to SetCommand or format invalid #84

Closed garretthyder closed 4 years ago

garretthyder commented 4 years ago

Hi @amostajo came across a minor item that I think we can safety.

If you use the following; php ayuco set version: 1.0.1 *Note the space before 1.0.1 This will update the version setting it to an empty string which is undesireable.

The above example was a mistype on my part placing a space in the command.

We can safety this and just throw the validation message if the value isn't present.