Hook validate of command options

Implemented validation. Did some other fleshing out.

Suggest doing the delete field as a separate command in order to be more conservative about trashing data without confirming that it's no longer needed.