Adding --check-input command line option

Check the specified input file and return the result.

Closes #4437