;areg: doc: clarify account selection

This commit is contained in:
Simon Michael 2021-01-28 07:22:21 -08:00
parent 6650a563fb
commit 93e5355a2b

View File

@ -22,8 +22,12 @@ As a quick rule of thumb,
use `aregister` for reconciling real-world asset/liability accounts use `aregister` for reconciling real-world asset/liability accounts
and `register` for reviewing detailed revenues/expenses. and `register` for reviewing detailed revenues/expenses.
An account must be specified as the first argument. This can be `aregister` shows the register for just one account (and its subaccounts).
a full account name or an account pattern (regular expression). This account must be specified as the first argument. You can write either
the full account name, or a case-insensitive regular expression which will
select the alphabetically first matched account.
(Eg if you have `assets:aaa:checking` and `assets:bbb:checking` accounts,
`hledger areg checking` would select `assets:aaa:checking`.)
Any additional arguments form a query which will filter the Any additional arguments form a query which will filter the
transactions shown. transactions shown.