Some cleanup on pre-commands

This commit is contained in:
thdox 2013-04-28 23:04:10 +02:00
parent 6ca9c4ef56
commit 68dde8cda6

View file

@ -3525,7 +3525,7 @@ gives you your cash basis income in the same two weeks.
Another use is distributing costs out in time. As an example, suppose Another use is distributing costs out in time. As an example, suppose
you just prepaid into a local vegetable co-op that sustains you you just prepaid into a local vegetable co-op that sustains you
through the winter. It cost $225 to join the program, so you write through the winter. It costs $225 to join the program, so you write
a check. You don't want your October grocery budget to be blown a check. You don't want your October grocery budget to be blown
because you bought food ahead, however. What you really want is for because you bought food ahead, however. What you really want is for
the money to be evenly distributed over the next six months so that the money to be evenly distributed over the next six months so that
@ -5467,7 +5467,7 @@ of every account reported in a balance report or register report.
@item --account-width @var{INT} @item --account-width @var{INT}
Set the width of the account column in the @command{register} report Set the width of the account column in the @command{register} report
to @code{INT} characters. to @var{INT} characters.
@item --actual @item --actual
@itemx -L @itemx -L
@ -7420,20 +7420,20 @@ Within a format string, a substitution is specified using a percent
%[-][MIN WIDTH][.MAX WIDTH](VALEXPR) %[-][MIN WIDTH][.MAX WIDTH](VALEXPR)
@end smallexample @end smallexample
If the optional minus sign @samp{-} follows the percent character, If the optional minus sign @samp{-} follows the percent character
whatever is substituted will be left justified. The default is right @samp{%}, whatever is substituted will be left justified. The default
justified. If a minimum width is given next, the substituted text is right justified. If a minimum width is given next, the substituted
will be at least that wide, perhaps wider. If a period and a maximum text will be at least that wide, perhaps wider. If a period and
width is given, the substituted text will never be wider than this, a maximum width is given, the substituted text will never be wider
and will be truncated to fit. Here are some examples: than this, and will be truncated to fit. Here are some examples:
@table @code @table @code
@item %-20P @item %-20P
A transaction's payee, left justified and padded to 20 characters wide. A transaction's payee, left justified and padded to 20 characters wide.
@item %20P @item %20P
The same, right justified, at least 20 chars wide The same, right justified, at least 20 chars wide.
@item %.20P @item %.20P
The same, no more than 20 chars wide The same, no more than 20 chars wide.
@end table @end table
The expression following the format constraints can be a single letter, The expression following the format constraints can be a single letter,
@ -8624,27 +8624,9 @@ is that pre-commands ignore the journal data file completely, nor is
the user's init file read. the user's init file read.
@ftable @code @ftable @code
@item args
Evaluate the given arguments against the following model transaction:
@smallexample
2004/05/27 Book Store
; This note applies to all postings. :SecondTag:
Expenses:Books 20 BOOK @@ $10
; Metadata: Some Value
; Typed:: $100 + $200
; :ExampleTag:
; Here follows a note describing the posting.
Liabilities:MasterCard $-200.00
@end smallexample
@item eval @var{VEXPR} @item eval @var{VEXPR}
Evaluate the given value expression against the model transaction Evaluate the given value expression against the model transaction
@item expr "LIMIT EXPRESSION"
Print details of how ledger parses the given limit expression and apply
it against a model transaction.
@item format @var{FORMAT_STRING} @item format @var{FORMAT_STRING}
Print details of how ledger uses the given formatting description and Print details of how ledger uses the given formatting description and
apply it against a model transaction. apply it against a model transaction.
@ -8654,10 +8636,11 @@ Randomly generates syntactically valid Ledger data from a seed. Used
by the GenerateTests harness for development testing by the GenerateTests harness for development testing
@item parse @var{VEXPR} @item parse @var{VEXPR}
@itemx expr @var{VEXPR}
Print details of how ledger uses the given value expression description Print details of how ledger uses the given value expression description
and apply it against a model transaction. and apply it against a model transaction.
@item period @item period @var{PERIOD_EXPRESSION}
Evaluate the given period and report how Ledger interprets it: Evaluate the given period and report how Ledger interprets it:
@smallexample @smallexample
@ -8680,8 +8663,9 @@ END_REACHED: <EOF>
@end smallexample @end smallexample
@item query @item query
@itemx args
Evaluate the given arguments and report how Ledger interprets it against Evaluate the given arguments and report how Ledger interprets it against
the model transaction: the following model transaction:
@smallexample @smallexample
$ ledger query "/Book/" $ ledger query "/Book/"