From 5b08d59dba28b99cf991c02e837297fbfdb190c9 Mon Sep 17 00:00:00 2001 From: _ov4 Date: Tue, 13 Oct 2026 12:32:56 +0000 Subject: feat: point command-line help to the platform manual Co-Authored-By: Claude Fable 5.1 --- tools/driver/main.cc | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'tools/driver/main.cc') 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; -- cgit v1.3.1-4-g156e