Hi Rob, all,
in 1.29, close changed to show only a closing transaction by default. To see both closing and opening, you should now use `hledger close --migrate`.
I was trying to make this command easier, but it's not yet satisfactory. The different uses and modes are still hard to explain.
It's a pain, but currently I'm leaning towards:
1. in 1.29.2, fixing the unannounced breakage, by restoring 1.28's `--open-acct` flag and legacy `--closing` and `--opening` flags and `equity` command alias.
2. in 1.30, attempting another UI cleanup: always operating on ALE accounts by default, adding --close for clarity, and deprecating --retain (at least). So it would become:
hledger close [--close|--open|--migrate] [ACCTQUERY]
[--close-acct=ACCT] [--open-acct=ACCT] [--close-desc=STR] [--open-desc=STR]
Show a closing transaction (default), opening transaction, or both, for the matched accounts (default: most asset/liability/equity accounts).
The account balances will be transferred to/from ACCT (default: equity:opening/closing).
This command is useful for transferring balances to a new file, and a few other things.
Eg it can be used to retain revenues and expenses, like this:
hledger close --close-desc 'retain earnings' --close-acct 'equity:retained earnings' type:rx
And if it's ever needed, the above retain incantation could be provided as an easier `hledger retain` command or script.
Comments and other ideas most welcome.