summaryrefslogtreecommitdiff
path: root/Version.cc
diff options
context:
space:
mode:
Diffstat (limited to 'Version.cc')
-rw-r--r--Version.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/Version.cc b/Version.cc
index 13a9b53..9fd924d 100644
--- a/Version.cc
+++ b/Version.cc
@@ -1,5 +1,6 @@
#include <llvm/Config/llvm-config.h>
+#include "Log.hh"
#include "Version.hh"
namespace pcc {
@@ -25,8 +26,8 @@ PCC_NORETURN void ShowVersion() {
PCC_NORETURN void ShowHelp() {
std::cerr << PCC_NAME " version " PCC_VERSION_STRING "\n"
- << "Usage: " PCC_NAME
- " [-vVhiSc] [-O <0,1,2,3>] [-o <output>] file...\n"
+ << "Usage: " << GetExecutableName()
+ << " [-vVhiSc] [-O <0,1,2,3>] [-o <output>] file...\n"
<< " -v Verbose mode.\n"
<< " -vv Very verbose mode.\n"
<< " -V Show version and exit.\n"