1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 12:41:49 +01:00

Give a proper error message when a command line option is defined more than

once (ie, at two different places in the source, not two times on the
commandline).

llvm-svn: 51771
This commit is contained in:
Matthijs Kooijman 2008-05-30 13:26:11 +00:00
parent 861df1986d
commit 9fc9250ec0

View File

@ -120,7 +120,7 @@ static void GetOptionInfo(std::vector<Option*> &PositionalOpts,
if (!OptionsMap.insert(std::pair<std::string,Option*>(OptionNames[i],
O)).second) {
cerr << ProgramName << ": CommandLine Error: Argument '"
<< OptionNames[0] << "' defined more than once!\n";
<< OptionNames[i] << "' defined more than once!\n";
}
}