From fd950f027300d3185c7b66b06981eddcfcfead4f Mon Sep 17 00:00:00 2001 From: Lukasz Kasprzak Date: Tue, 28 Jul 2026 23:39:17 +0200 Subject: help: refresh -h/--help for lectio, lectio-ui, lectio-web The help text predated this session's changes. Update all three binaries: - Taglines: drop "(Polish + 4 versions)" -> "offline ... daily readings (OF + EF)". - Versions: state that only the Latin Vulgate is built in; wuj/grb/drb are optional (make build-full, or drop .tsv/.ini into the corpora dir); a missing version renders "(not in )". - --ui-lang: now any code (en, pl, ...), not just pl|en; note names/.ini, ui/.ini, custom calendars and the sanctorale override. - lectio-ui: drop the removed "bt" version and the no-op -o/--offline flag from the help (the tool is fully offline; --offline only ever dropped bt). - lectio-web: drop -o/--offline; add a one-line description of what it serves. No behaviour change; full suite green. --- internal/cli/cli.go | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'internal/cli/cli.go') diff --git a/internal/cli/cli.go b/internal/cli/cli.go index c0c9dea..56de12b 100644 --- a/internal/cli/cli.go +++ b/internal/cli/cli.go @@ -25,20 +25,20 @@ import ( "github.com/lukaszkasprzak/lectio/internal/render" ) -const helpText = `lectio — daily Catholic liturgy readings (Polish + 4 versions) +const helpText = `lectio — offline Catholic daily readings & liturgical calendar (OF + EF) Usage: lectio [DATE] [flags] DATE = YYYY-MM-DD (default: today), any position Flags: -a, --all all readings, not just the gospel - -b, --bible VER one version's text: wuj,vul,grb,drb + -b, --bible VER one version's text (vul built in; see Versions below) -c, --compare LIST versions side by side (comma-separated) -p, --ref REF look up a passage (e.g. "J 3:16") with -b/-c -r, --raw text only, no banner/headings (for piping) -w, --width N wrap width; 0 = detect terminal -l, --lectionary WHICH new|trad (trad -> traditional) - --ui-lang LANG override interface/export language: pl|en + --ui-lang LANG day/saint-name & interface language: any code (en, pl, ...) -P, --pager page reading output (like git); default from config --no-pager never page, even if config sets one --list list all books + abbreviations (dialect from sigla_style) @@ -64,7 +64,14 @@ Flags: -v, --version print the version and exit -h, --help this help -Versions: wuj (Wujek) vul (Wulgata) grb (Grecki) drb (Douay-Rheims) +Versions: vul (Latin Vulgate) is built in. wuj (Wujek), grb (Greek) and drb +(Douay-Rheims) are optional: build with 'make build-full', or drop .tsv + +.ini into ~/.config/lectio/corpora/. A missing version renders "(not in )". + +Localisation: ui_language accepts any code; day/saint names come from +~/.config/lectio/names/.ini and interface labels from ui/.ini +(en/pl built in). Custom calendars go in ~/.config/lectio/calendars/ (use=...); +a full replacement sanctorale in ~/.config/lectio/sanctorale/of.ini or ef.ini. Examples: lectio today's gospel -- cgit v1.3