Adding --check-input command line option

Check the specified input file and return the result.

Closes #4437
Merge pull request #4438 from andrsd/check-input

Adding --check-input command line option