Added check for invalid cli options