From 5dd14266f2609faadc3ec60077127a7ef7e8ac8b Mon Sep 17 00:00:00 2001 From: Lukasz Kasprzak Date: Wed, 2 Sep 2026 12:30:56 +0200 Subject: feat(cli): --help is one screen, not the whole manual It printed 374 lines: every output format, the RFC 4180 quoting rule, the template scope hazard, the publish manifest semantics. All of that is real documentation and all of it is already in colitur(1), installed beside the binary. A help text nobody reads at the terminal is not more helpful than a short one, it is less -- the reader stops looking. Now 42 lines: the commands, the flags most runs need, the year domain, the exit status, and where the rest lives. Everything removed is in the man pages, which is checked rather than assumed -- each dropped section has a counterpart section there. One thing moved rather than went. cli.t pinned `rubrics`' documented field list against what `rubrics` actually prints, because that field count drifted once already and stayed wrong for a whole review round. Deleting the prose would have quietly retired the check, so it now reads the worked example out of man/colitur.1 instead, and test/dune's cram stanza gains the man page as a dep -- a sandbox holds only what that stanza names. Mutation-tested: changing the documented example reddens the suite. The tagline also stopped saying "Roman rite, 1962" -- the OF has shipped since v1.1.0. --- test/dune | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'test/dune') diff --git a/test/dune b/test/dune index 0a3ade6..85facc9 100644 --- a/test/dune +++ b/test/dune @@ -105,4 +105,11 @@ ../schema/day-v1.json ; Same trap, same fix: Task 8's --sigla-tradition flag makes the CLI read ; this file, and a cram sandbox holds only what this stanza names. - ../lang/traditions.ini)) + ../lang/traditions.ini + ; The man page is a DEP, not a runtime file the binary reads: cli.t's own + ; rubrics anti-drift check compares the documented worked example against + ; what `rubrics` actually prints, and that documentation now lives here + ; rather than in --help (trimmed to one screen). The check exists because + ; this exact field list drifted once and stayed wrong for a whole review + ; round; moving the prose without moving the check would quietly retire it. + ../man/colitur.1)) -- cgit v1.3