validator: return a status code indicating success or failure

It is a useful convention to return a failing status code in case
something went horribly wrong during execution, or the command line
arguments are invalid.  This can then be checked e.g. in LO's
test::BootstrapFixture.

(If validation errors are found, it was still a successful execution.)
1 file changed