diff --git a/doc/lib.m4 b/doc/lib.m4 index ec0f05e7b..cd7b833b9 100644 --- a/doc/lib.m4 +++ b/doc/lib.m4 @@ -140,7 +140,7 @@ m4_define({{_reportingoptions_}}, {{ `-C --cleared` : include only cleared postings/txns -`--pending` +`-P --pending` : include only pending postings/txns `-U --uncleared` diff --git a/hledger/Hledger/Cli/CliOptions.hs b/hledger/Hledger/Cli/CliOptions.hs index 17bf16017..100249ea2 100644 --- a/hledger/Hledger/Cli/CliOptions.hs +++ b/hledger/Hledger/Cli/CliOptions.hs @@ -140,7 +140,7 @@ reportflags = [ ,flagNone ["date2"] (setboolopt "date2") "show, and make -b/-e/-p/date: match, secondary dates instead" ,flagNone ["cleared","C"] (setboolopt "cleared") "include only cleared postings/txns" - ,flagNone ["pending"] (setboolopt "pending") "include only pending postings/txns" + ,flagNone ["pending","P"] (setboolopt "pending") "include only pending postings/txns" ,flagNone ["uncleared","U"] (setboolopt "uncleared") "include only unmarked postings/txns" ,flagNone ["real","R"] (setboolopt "real") "include only non-virtual postings" ,flagReq ["depth"] (\s opts -> Right $ setopt "depth" s opts) "N" "hide accounts/postings deeper than N" diff --git a/site/faq.md b/site/faq.md index 83ffdc43b..8e017d622 100644 --- a/site/faq.md +++ b/site/faq.md @@ -181,6 +181,8 @@ or [balance assertions](manual.html#assertions-and-ordering). - in hledger version 1.3 onward, -U/--uncleared does not match pending things. (#564) +- hledger's -P flag is short for --pending. Ledger uses it for grouping by payee. + ### Future ? There is a [ledger4](https://github.com/ledger/ledger4) repo on