summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/CommandLine.cpp
diff options
context:
space:
mode:
authorYing Yi <maggieyi666@gmail.com>2016-07-22 10:52:21 +0000
committerYing Yi <maggieyi666@gmail.com>2016-07-22 10:52:21 +0000
commit60a3da3f4c69a5d5082dbafcecf3f0ddec8bafe5 (patch)
tree4f9fe571b218599c2d38d2ef1286ad1eeb1ba241 /llvm/lib/Support/CommandLine.cpp
parent0576ad6d35e59ec49d934841abbd45ffb6ed5866 (diff)
downloadbcm5719-llvm-60a3da3f4c69a5d5082dbafcecf3f0ddec8bafe5.tar.gz
bcm5719-llvm-60a3da3f4c69a5d5082dbafcecf3f0ddec8bafe5.zip
[llvm-cov] - Improve llvm-cov error message
Summary: When giving the following command: % llvm-cov report -instr-profile=default.profraw llvm-cov will give the following error message: >llvm-cov report: Not enough positional command line arguments specified! >Must specify at least 1 positional arguments: See: orbis-llvm-cov report -help This patch changes the error message from '1 positional arguments' to '1 positional argument'. Differential Revision: https://reviews.llvm.org/D22621 llvm-svn: 276404
Diffstat (limited to 'llvm/lib/Support/CommandLine.cpp')
-rw-r--r--llvm/lib/Support/CommandLine.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Support/CommandLine.cpp b/llvm/lib/Support/CommandLine.cpp
index 05a7db5cfb3..3b1b3eb7e55 100644
--- a/llvm/lib/Support/CommandLine.cpp
+++ b/llvm/lib/Support/CommandLine.cpp
@@ -1211,7 +1211,8 @@ bool CommandLineParser::ParseCommandLineOptions(int argc,
errs() << ProgramName
<< ": Not enough positional command line arguments specified!\n"
<< "Must specify at least " << NumPositionalRequired
- << " positional arguments: See: " << argv[0] << " -help\n";
+ << " positional argument" << (NumPositionalRequired > 1 ? "s" : "")
+ << ": See: " << argv[0] << " - help\n";
}
ErrorParsing = true;
OpenPOWER on IntegriCloud