imp: accounts: -u, -d
This commit is contained in:
parent
b16a02b2e6
commit
4ecc57461a
@ -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)"
|
||||
|
||||
@ -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`).
|
||||
|
||||
Loading…
Reference in New Issue
Block a user