Implement validate command

The cli_spec was mainly for testing of the option interaction without integration tests. For a simple command like this I also wouldn't add a test like this.