From f348bb642c8e18db645bf8885bee03008643bc7b Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Sun, 20 Oct 2024 08:15:35 -1000 Subject: [PATCH] ;cli:help: make --pager's help more accurate --pager's "yes" doesn't unconditionally force it on; it behaves more like --color's "auto". But yes/no is easier to read and understand, so keep that and just tweak the wording. --- hledger/Hledger/Cli/CliOptions.hs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/hledger/Hledger/Cli/CliOptions.hs b/hledger/Hledger/Cli/CliOptions.hs index e0c03e020..8678516af 100644 --- a/hledger/Hledger/Cli/CliOptions.hs +++ b/hledger/Hledger/Cli/CliOptions.hs @@ -247,9 +247,10 @@ helpflags = [ -- These are included in helpflags so they appear everywhere. terminalflags = [ flagReq ["pager"] (\s opts -> Right $ setopt "pager" s opts) "YN" - "use pager for long output ? y/yes or n/no" - -- This has special support in hledger-lib:colorOption, keep synced - ,flagReq ["color","colour"] (\s opts -> Right $ setopt "color" s opts) "YN" + "use a pager when needed ? y/yes (default) or n/no" + + -- keep synced with hledger-lib:colorOption: + ,flagReq ["color","colour"] (\s opts -> Right $ setopt "color" s opts) "YNA" "use ANSI color ? y/yes, n/no, or auto (default)" ]