hledger/hledger/Hledger/Cli/Commands/Accounts.txt
Simon Michael c8246e7323 cli: command help: reduce width, line wrapping
cmdargs wraps any lines longer than 78 characters.  To (mostly) avoid
this, we now display verbatim blocks unindented, and some of
register's examples have been altered to make them fit.
2019-01-30 17:58:13 -08:00

25 lines
688 B
Plaintext

accounts, a
Show account names.
_FLAGS_
This command lists account names, either declared with account
directives (--declared), posted to (--used), or both (the default). With
query arguments, only matched account names and account names referenced
by matched postings are shown. It shows a flat list by default. With
--tree, it uses indentation to show the account hierarchy. In flat mode
you can add --drop N to omit the first few account name components.
Account names can be depth-clipped with depth:N or --depth N or -N.
Examples:
$ hledger accounts
assets:bank:checking
assets:bank:saving
assets:cash
expenses:food
expenses:supplies
income:gifts
income:salary
liabilities:debts