Hi Jay,
cerr << ProgramName << ": CommandLine Error: Argument '"
<< OptionNames[0] << "' defined more than once!\n";should be printing OptionNames[i], not OptionNames[0].
I committed this fix,
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20080526/063136.html
Thanks!