summaryrefslogtreecommitdiff
path: root/Version.cc
diff options
context:
space:
mode:
authorNagi5Yeq <wu@x-nagi.com>2020-06-03 02:36:05 +0800
committerNagi5Yeq <wu@x-nagi.com>2020-06-03 02:36:05 +0800
commit2d6ab4b7f207a746a7caaa93466b410cbe328626 (patch)
tree570a2d7776e616309149adf065acc474c0c0de98 /Version.cc
parentcd1466f30c146e12faa0db7e1b53b508bf2274c6 (diff)
support for short, int64 and AST dump
Diffstat (limited to 'Version.cc')
-rw-r--r--Version.cc26
1 files changed, 15 insertions, 11 deletions
diff --git a/Version.cc b/Version.cc
index 9fd924d..bb0007d 100644
--- a/Version.cc
+++ b/Version.cc
@@ -27,17 +27,21 @@ PCC_NORETURN void ShowVersion() {
PCC_NORETURN void ShowHelp() {
std::cerr << PCC_NAME " version " PCC_VERSION_STRING "\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"
- << " -h Show this help and exit.\n"
- << "\n"
- << " -i Generate LLVM IR (default behavior).\n"
- << " -S Compile to assembly file.\n"
- << " -c Compile to object file.\n"
- << " -o <output> Specify output file name.\n"
- << " -O <0,1,2,3> Specify optimization level." << std::endl;
+ << " [-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"
+ " -h Show this help and exit.\n"
+ "\n"
+ " -i Generate LLVM IR (default behavior).\n"
+ " -S Compile to assembly file.\n"
+ " -c Compile to object file.\n"
+ " -o <output> Specify output file name.\n"
+ " -O <0,1,2,3> Specify optimization level.\n"
+ "\n"
+ " -a Also dump the AST."
+ << std::endl;
std::exit(0);
}