From 93e5355a2b89ffdb4134fedb6fcc572c7d2d4f6e Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Thu, 28 Jan 2021 07:22:21 -0800 Subject: [PATCH] ;areg: doc: clarify account selection --- hledger/Hledger/Cli/Commands/Aregister.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/hledger/Hledger/Cli/Commands/Aregister.md b/hledger/Hledger/Cli/Commands/Aregister.md index 647901838..3970215c4 100644 --- a/hledger/Hledger/Cli/Commands/Aregister.md +++ b/hledger/Hledger/Cli/Commands/Aregister.md @@ -22,8 +22,12 @@ As a quick rule of thumb, use `aregister` for reconciling real-world asset/liability accounts and `register` for reviewing detailed revenues/expenses. -An account must be specified as the first argument. This can be -a full account name or an account pattern (regular expression). +`aregister` shows the register for just one account (and its subaccounts). +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 transactions shown.