diff options
author | Jim Laskey <jlaskey@mac.com> | 2006-08-02 20:15:56 +0000 |
---|---|---|
committer | Jim Laskey <jlaskey@mac.com> | 2006-08-02 20:15:56 +0000 |
commit | abe0e3e6410ca3f192b6a656cbcd042b05d0a68b (patch) | |
tree | 87c50315af0cad3d349611b1fa1b50c28bb40a45 /lib/Support/CommandLine.cpp | |
parent | d7210f9dba249f1cf21ee65f317e02f502e81f54 (diff) |
If the Program name was NULL then all further output sent to std::cerr was
suppressed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29477 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/CommandLine.cpp')
-rw-r--r-- | lib/Support/CommandLine.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Support/CommandLine.cpp b/lib/Support/CommandLine.cpp index 08b6fcbd59..f7fbef6b72 100644 --- a/lib/Support/CommandLine.cpp +++ b/lib/Support/CommandLine.cpp @@ -616,7 +616,9 @@ bool Option::error(std::string Message, const char *ArgName) { if (ArgName[0] == 0) std::cerr << HelpStr; // Be nice for positional arguments else - std::cerr << ProgramName << ": for the -" << ArgName; + std::cerr << (ProgramName ? ProgramName : "***") + << ": for the -" << ArgName; + std::cerr << " option: " << Message << "\n"; return true; } |