Use CommandLine to parse and validate command line parameters.