Add handling of invalid command-line arguments to CommandLine’s parseArguments method