Add validations for command line arguments.