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 --- doc/cpsc.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'doc') diff --git a/doc/cpsc.md b/doc/cpsc.md index 98340aa..fa4ae2b 100644 --- a/doc/cpsc.md +++ b/doc/cpsc.md @@ -8,6 +8,8 @@ cpsc - compile and run CIE pseudocode **cpsc** [**-r**] [**-o** *output*] *source* +**cpsc** **-h** + # DESCRIPTION Compile one pseudocode source file to LLVM IR. Options may appear before or after the source path. Source input from stdin is not supported. @@ -16,6 +18,9 @@ Without **-o** or **-r**, replace the source filename's extension with `.ir` and # OPTIONS +**-h** +: Print only the documentation entry point: `man 1 cpsc` on Unix/macOS, or Start Menu > cpsc > cpsc Help on Windows. Return successfully without compiling, even when other arguments are present. + **-o** *output* : Save IR to the specified path. May be specified only once. With **-r**, keep this file even if execution fails. @@ -64,7 +69,7 @@ cpsc test.cps -r -o result.ir # EXIT STATUS **0** -: Compilation succeeded. +: Compilation succeeded, or **-h** printed the documentation entry point. **1** : An argument, file, compilation or execution-engine error occurred, including missing input, when PATH mode cannot find `lli` or NONE mode receives **-r**. -- cgit v1.3.1-4-g156e