Validating command line arguments.