Teach `validate` script how to `--help`

This basically turns the comment at the beginning of the `validate`
shell script into an interactive `--help` output plus some minor additions.