mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-26 05:00:26 +00: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). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51771 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
494661c623
commit
33540adca5
@ -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";
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user