;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.
This commit is contained in:
parent
f8cc9cdb4d
commit
f348bb642c
@ -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)"
|
||||
]
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user