Added error handling for parsed arguments.
Merge pull request #4 from fhqvst/master

Added error handling for parsed arguments.