Inform user when invalid loglevel is provided in command line options

Print an error message when invalid loglevel value is provided
Exit with an error code