lib: add -P short flag for --pending (#564)

This commit is contained in:
Simon Michael 2017-06-10 10:37:06 -07:00
parent 8b073014e4
commit ab073e01e3
3 changed files with 4 additions and 2 deletions

View File

@ -140,7 +140,7 @@ m4_define({{_reportingoptions_}}, {{
`-C --cleared`
: include only cleared postings/txns
`--pending`
`-P --pending`
: include only pending postings/txns
`-U --uncleared`

View File

@ -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"

View File

@ -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