imp: accounts: -u, -d

This commit is contained in:
Simon Michael 2022-10-08 08:22:10 -10:00
parent b16a02b2e6
commit 4ecc57461a
2 changed files with 4 additions and 4 deletions

View File

@ -37,8 +37,8 @@ accountsmode = hledgerCommandMode
$(embedFileRelative "Hledger/Cli/Commands/Accounts.txt")
(flattreeflags False ++
[flagReq ["drop"] (\s opts -> Right $ setopt "drop" s opts) "N" "flat mode: omit N leading account name parts"
,flagNone ["used"] (setboolopt "used") "show only accounts used by transactions"
,flagNone ["declared"] (setboolopt "declared") "show only accounts declared by account directive"
,flagNone ["used","u"] (setboolopt "used") "show only accounts used by transactions"
,flagNone ["declared","d"] (setboolopt "declared") "show only accounts declared by account directive"
,flagNone ["unused"] (setboolopt "unused") "show accounts declared but not used"
,flagNone ["undeclared"] (setboolopt "undeclared") "show accounts used but not declared"
,flagNone ["find"] (setboolopt "find") "find the first account matched by the first command argument (a case-insensitive infix regexp or account name)"

View File

@ -9,8 +9,8 @@ By default it shows all known accounts, either used in transactions or declared
With query arguments, only matched account names and account names referenced by matched postings are shown.
Or it can show just
the used accounts (`--used`),
the declared accounts (`--declared`),
the used accounts (`--used`/`-u`),
the declared accounts (`--declared`/`-d`),
the accounts declared but not used (`--unused`),
the accounts used but not declared (`--undeclared`),
or the first account matched by an account name pattern, if any (`--find`).