[doc] Change wording in manpage

[ci skip]
This commit is contained in:
Alexis Hildebrandt 2015-01-24 11:00:03 +01:00
parent eca8ffc016
commit 8c48ca879b

View file

@ -35,17 +35,17 @@ enters a
or command loop, allowing several commands to be executed on the same or command loop, allowing several commands to be executed on the same
dataset without reparsing. dataset without reparsing.
.Pp .Pp
The following is a complete list of reporting commands accepted by The following is a complete list of accepted reporting commands:
.Nm :
.Bl -tag -width accounts .Bl -tag -width accounts
.It Ic accounts Oo Ar report-query Oc .It Ic accounts Oo Ar report-query Oc
Lists all accounts for postings matching the List all accounts for postings that match the
.Ar report-query . .Ar report-query .
.El .El
.Bl -tag -width balance .Bl -tag -width balance
.It Ic balance Oo Ar report-query Oc .It Ic balance Oo Ar report-query Oc
Produces a balance report showing totals for all matching accounts, and Print a balance report showing totals for postings that match
aggregate totals for parents of those accounts. Options most commonly used .Ar report-query ,
and aggregate totals for parents of those accounts. Options most commonly used
with this command are: with this command are:
.Bl -tag -compact -width "--collapse (-n)" .Bl -tag -compact -width "--collapse (-n)"
.It Fl \-basis Pq Fl B .It Fl \-basis Pq Fl B
@ -55,13 +55,13 @@ report which is guaranteed to always balance to zero, when no
is specified. is specified.
Only show totals for the top-most accounts. Only show totals for the top-most accounts.
.It Fl \-empty Pq Fl E .It Fl \-empty Pq Fl E
Also show accounts whose total is zero. Show accounts whose total is zero.
.It Fl \-flat .It Fl \-flat
Rather than display a hierarchical tree, flatten the report to show subtotals Rather than display a hierarchical tree, flatten the report to show subtotals
for only accounts matching for only accounts matching
.Ar report-query . .Ar report-query .
.It Fl \-no-total .It Fl \-no-total
Suppress the summary total shown at the bottom of the report (when not zero). Suppress the summary total shown at the bottom of the report.
.El .El
.Pp .Pp
The synonyms The synonyms
@ -84,7 +84,7 @@ each account, and the date of the most recent cleared posting in that account.
For this accounting to be meaningful, the cleared flag must be set on at least For this accounting to be meaningful, the cleared flag must be set on at least
one posting. See the manual for more information. one posting. See the manual for more information.
.It Ic commodities Oo Ar report-query Oc .It Ic commodities Oo Ar report-query Oc
Lists all commodities for postings matching the List all commodities for postings matching the
.Ar report-query . .Ar report-query .
.It Ic convert .It Ic convert
Reads data from a CSV (comma-separated values) file and generates Reads data from a CSV (comma-separated values) file and generates
@ -110,13 +110,13 @@ The synonym
.Ic xact .Ic xact
is also accepted. is also accepted.
.It Ic emacs Oo Ar query Oc .It Ic emacs Oo Ar query Oc
Outputs posting and transaction data in a format readily consumed by the Emacs Output posting and transaction data in a format readily consumed by the Emacs
editor, in a series of Lisp forms. This is used by the editor, in a series of Lisp forms. This is used by the
.Pa ledger.el .Pa ledger.el
Emacs mode to process reporting data from Emacs mode to process reporting data from
.Nm . .Nm .
.It Ic equity Oo Ar report-query Oc .It Ic equity Oo Ar report-query Oc
Prints a transaction with a series of postings that balance current totals for Print a transaction with a series of postings that balance current totals for
accounts matching the accounts matching the
.Ar report-query .Ar report-query
in a special account called in a special account called
@ -124,27 +124,27 @@ in a special account called
The purpose of this report is to close the books for a prior year, while using The purpose of this report is to close the books for a prior year, while using
these equity postings to carry forward those balances. these equity postings to carry forward those balances.
.It Ic org .It Ic org
Produces a journal file suitable for use in the Emacs org mode. Produce a journal file suitable for use in the Emacs org mode.
.It Ic payees Oo Ar report-query Oc .It Ic payees Oo Ar report-query Oc
Lists all payees for postings matching the List all payees for postings matching the
.Ar report-query . .Ar report-query .
.It Ic pricemap .It Ic pricemap
Produces a file which can be used to generate a graph with graphviz showing Produce a file which can be used to generate a graph with graphviz showing
the relationship of commodities in the the relationship of commodities in the
.Nm .Nm
file. file.
.It Ic prices Oo Ar report-query Oc .It Ic prices Oo Ar report-query Oc
Reports prices for all commodities in postings matching the Report prices for all commodities in postings matching the
.Ar report-query . .Ar report-query .
The prices are reported with the granularity of a single day. The prices are reported with the granularity of a single day.
.It Ic pricedb Oo Ar report-query Oc .It Ic pricedb Oo Ar report-query Oc
Reports prices for all commodities in postings matching the Report prices for all commodities in postings matching the
.Ar report-query . .Ar report-query .
Prices are reported down to the second, using the same format as the Prices are reported down to the second, using the same format as the
.Pa ~/.pricedb .Pa ~/.pricedb
file. file.
.It Ic print Oo Ar report-query Oc .It Ic print Oo Ar report-query Oc
Prints out the full transactions of any matching postings using the same Print out the full transactions of any matching postings using the same
format as they would appear in a data file. This can be used to extract format as they would appear in a data file. This can be used to extract
subsets from a subsets from a
.Nm .Nm
@ -152,12 +152,17 @@ file to transfer to other files.
.It Ic push Oo Ar options Oc .It Ic push Oo Ar options Oc
In the In the
.Tn REPL , .Tn REPL ,
this command pushes a set of command-line options, so that they will apply to push a set of command-line
all subsequent reports. .Ar options ,
so that they will apply to all subsequent reports.
.It Ic pop .It Ic pop
In the In the
.Tn REPL , .Tn REPL ,
pops any option settings that have been pushed. pop any option settings that have been
.Sm off
.Ic push
ed.
.Sm on
.It Ic register Oo Ar report-query Oc .It Ic register Oo Ar report-query Oc
List all postings matching the List all postings matching the
.Ar report-query . .Ar report-query .
@ -258,14 +263,14 @@ work-in-progress, and will not be fully functional until a later version.
List all postings matching the List all postings matching the
.Ar sql-query . .Ar sql-query .
This command allows to generate SQL-like queries, e.g.: This command allows to generate SQL-like queries, e.g.:
.Dl Li ledger select 'date,amount where account==\*qIncome:Salary\*q' .Dl Li ledger select date,amount from posts where account=~/Income/
.It Ic source .It Ic source
Parses a journal file and checks it for errors. Parse a journal file and checks it for errors.
.Nm .Nm
will return success will return success
if no errors are found. if no errors are found.
.It Ic stats Oo Ar report-query Oc .It Ic stats Oo Ar report-query Oc
Provides summary information about all the postings matching Provide summary information about all the postings matching
.Ar report-query . .Ar report-query .
It provides information such as: It provides information such as:
.Bl -bullet -offset indent -compact .Bl -bullet -offset indent -compact
@ -282,10 +287,10 @@ Uncleared postings
.It .It
Days since last posting Days since last posting
.It .It
More... Posts in the last 7 and 30 days and this month
.El .El
.It Ic xml Oo Ar report-query Oc .It Ic xml Oo Ar report-query Oc
Outputs data relating to the current report in Output data relating to the current report in
.Tn XML .Tn XML
format. It includes all format. It includes all
accounts and commodities involved in the report, plus the postings and the accounts and commodities involved in the report, plus the postings and the
@ -308,14 +313,17 @@ than
then the account will be truncated on the then the account will be truncated on the
left, with no shortening of the account names in order to fit into the left, with no shortening of the account names in order to fit into the
desired width. desired width.
.It Fl \-account Ar STR .It Fl \-account Ar EXPR
Prepend Prepend
.Ar STR .Ar EXPR
to all accounts reported. That is, the option to all accounts reported. That is, the option
.Fl \-account Ar \*q'Personal'\*q .Fl \-account Ar \*q'Personal'\*q
would tack would tack
.Ar Personal: .Ar Personal:
to the beginning of every account reported in a balance report or register report. and
.Fl \-account Ar \*qtag('VAT')\*q
would tack the value of the VAT tag to the beginning of every account
reported in a balance report or register report.
.It Fl \-account-width Ar INT .It Fl \-account-width Ar INT
Set the width of the account column in the Set the width of the account column in the
.Ic register .Ic register
@ -396,11 +404,7 @@ Specify the format to use for the
.Ic cleared .Ic cleared
report report
.It Fl \-collapse Pq Fl n .It Fl \-collapse Pq Fl n
By default Print only the top level accounts.
.Nm
prints all accounts in an account tree. With
.Fl \-collapse
it prints only the top level account specified.
.It Fl \-collapse-if-zero .It Fl \-collapse-if-zero
Collapse the account display only if it has a zero balance. Collapse the account display only if it has a zero balance.
.It Fl \-color .It Fl \-color
@ -614,10 +618,8 @@ Instruct
to evaluate calculations immediately rather than lazily. to evaluate calculations immediately rather than lazily.
.\".It Fl \-import .\".It Fl \-import
.It Fl \-init-file Ar FILE Pq Fl i .It Fl \-init-file Ar FILE Pq Fl i
Causes Read
.Ar FILE .Ar FILE
to be read by
.Nm
before any other before any other
.Nm .Nm
file. file.
@ -822,9 +824,7 @@ of the transaction.
.It Fl \-related-all .It Fl \-related-all
Show all postings in a transaction, similar to Show all postings in a transaction, similar to
.Fl \-related .Fl \-related
but show but show both sides of each transaction.
.Em both sides
of each transaction.
.\".It Fl \-revalued .\".It Fl \-revalued
.\".It Fl \-revalued-only .\".It Fl \-revalued-only
.\".It Fl \-revalued-total Ar EXPR .\".It Fl \-revalued-total Ar EXPR
@ -845,11 +845,11 @@ Sort the register report based on the value expression given to sort.
.It Fl \-sort-xacts .It Fl \-sort-xacts
Sort the posting within transactions using the given value expression. Sort the posting within transactions using the given value expression.
.It Fl \-start-of-week Ar STR .It Fl \-start-of-week Ar STR
Tell Use
.Nm .Ar STR
to use a particular day of the week to start its as the particular day of the week to start when using the
.Qq weekly .Fl \-weekly
summary. option.
.Ar STR .Ar STR
can be day names, their abbreviations like can be day names, their abbreviations like
.Qq Mon , .Qq Mon ,
@ -916,7 +916,7 @@ file to change the default.
Perform all calculations without rounding and display results to full Perform all calculations without rounding and display results to full
precision. precision.
.It Fl \-values .It Fl \-values
Shows the values used by each tag when used in combination with the Show the values used by each tag when used in combination with the
.Ic tags .Ic tags
command. command.
.\".It Fl \-value-expr Ar EXPR .\".It Fl \-value-expr Ar EXPR
@ -1135,36 +1135,35 @@ also accepts several
debug commands: debug commands:
.Bl -tag -width balance .Bl -tag -width balance
.It Ic args Oo Ar report-query Oc .It Ic args Oo Ar report-query Oc
Accepts a Display complete analysis of how
.Ar report-query
as its argument and displays it back to the user along with a complete
analysis of how
.Nm .Nm
interpreted it. Useful if you want to understand how interpreted the given
report queries are translated into value expressions. .Ar report-query .
Useful if you want to understand how report queries are translated into value
expressions.
.It Ic eval Oo Ar value-expression Oc .It Ic eval Oo Ar value-expression Oc
Evaluates the given Evaluate the given
.Ar value-expression .Ar value-expression
and prints the result. For more on value expressions, see the section and prints the result. For more on value expressions, see the section
.Sx EXPRESSIONS . .Sx EXPRESSIONS .
.It Ic format Oo Ar format-string Oc .It Ic format Oo Ar format-string Oc
Accepts a Display an analysis of how
.Ar format-string .Ar format-string
and displays an analysis of how it was parsed, and what it would look like was parsed, and what it would look like applied to a sample transaction. For
applied to a sample transaction. For more on format strings, see the section more on format strings, see the section
.Sx FORMATS . .Sx FORMATS .
.It Ic generate .It Ic generate
Generates 50 randomly composed yet valid Generate 50 randomly composed yet valid
.Nm .Nm
transactions. transactions.
.It Ic parse Oo Ar value-expression Oc .It Ic parse Oo Ar value-expression Oc
Parses the given Parse the given
.Ar value-expression .Ar value-expression
and display an analysis of the expression tree and its evaluated value. For and display an analysis of the expression tree and its evaluated value. For
more on value expressions, see the section more on value expressions, see the section
.Sx EXPRESSIONS . .Sx EXPRESSIONS .
.It Ic python Oo Ar file Oc .It Ic python Oo Ar file Oc
Invokes a Python interpreter to read the given Invoke a Python interpreter to read the given
.Ar file . .Ar file .
What is special about this is that the What is special about this is that the
.Nm .Nm
@ -1174,13 +1173,13 @@ disk, so it doesn't require
to be installed anywhere, or the shared to be installed anywhere, or the shared
library variants to be built. library variants to be built.
.It Ic reload .It Ic reload
Used only in the Reload all data files for the current session immediately.
.Tn REPL , Can only be used in the
it causes an immediate reloading of all data files for the current session. .Tn REPL .
.It Ic template Oo Ar draft-template Oc .It Ic template Oo Ar draft-template Oc
Accepts a Display information about how
.Ar draft-template .Ar draft-template
and displays information about how it was parsed. See the section on was parsed. See the section on
.Sx DRAFTS . .Sx DRAFTS .
.El .El
.Sh ENVIRONMENT .Sh ENVIRONMENT