Adding --check-input command line option

Check the specified input file and return the result.

Closes #4437
I kinda don't like this check here since it makes a liar out of `executeExecutioner()` but I don't feel like changing it right now either. This is fine.