Share some code that is common between integer and
[oota-llvm.git] / lib / Support / CommandLine.cpp
index 412dcb61839ea14943ffc01002f0255e9526a0df..571b03386779f9e3243bb02bb6a37cb8bd3871dc 100644 (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";
       }
     }