aboutsummaryrefslogtreecommitdiff
path: root/tools/driver/main.cc
diff options
context:
space:
mode:
author_ov4 <ov4@ov4.org>2026-10-13 12:32:56 +0000
committer_ov4 <ov4@ov4.org>2026-10-13 12:32:56 +0000
commit5b08d59dba28b99cf991c02e837297fbfdb190c9 (patch)
tree2fa442c7949a69193bea82334d8d705e06e5cb55 /tools/driver/main.cc
parent17cec530b0a4d792bde2d37583b6c26e89f9b1bd (diff)
feat: point command-line help to the platform manual
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Diffstat (limited to 'tools/driver/main.cc')
-rw-r--r--tools/driver/main.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/tools/driver/main.cc b/tools/driver/main.cc
index d670ac0..a4616bd 100644
--- a/tools/driver/main.cc
+++ b/tools/driver/main.cc
@@ -23,6 +23,17 @@ int compilationTerminated() {
} // namespace
int main(int argc, char **argv) {
+ for (int I = 1; I < argc; ++I) {
+ if (std::string(argv[I]) == "-h") {
+#ifdef _WIN32
+ llvm::outs() << "See Start Menu > cpsc > cpsc Help for HTML help.\n";
+#else
+ llvm::outs() << "See man 1 cpsc for help.\n";
+#endif
+ return 0;
+ }
+ }
+
std::string InputPath;
std::string OutputPath;
bool Run = false;