From 33540adca55b95a5fdbb0dc783ded319a90b4bc1 Mon Sep 17 00:00:00 2001 From: Matthijs Kooijman Date: Fri, 30 May 2008 13:26:11 +0000 Subject: [PATCH] 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 --- lib/Support/CommandLine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Support/CommandLine.cpp b/lib/Support/CommandLine.cpp index 412dcb61839..571b0338677 100644 --- a/lib/Support/CommandLine.cpp +++ b/lib/Support/CommandLine.cpp @@ -120,7 +120,7 @@ static void GetOptionInfo(std::vector &PositionalOpts, if (!OptionsMap.insert(std::pair(OptionNames[i], O)).second) { cerr << ProgramName << ": CommandLine Error: Argument '" - << OptionNames[0] << "' defined more than once!\n"; + << OptionNames[i] << "' defined more than once!\n"; } } -- 2.34.1