[doc] Add documentation for several options
This commit is contained in:
parent
d5e1308d07
commit
bd427a9d32
2 changed files with 90 additions and 53 deletions
68
doc/ledger.1
68
doc/ledger.1
|
|
@ -191,7 +191,8 @@ Show any gains (or losses) in commodity values over time.
|
||||||
Only show the top
|
Only show the top
|
||||||
.Ar number
|
.Ar number
|
||||||
postings.
|
postings.
|
||||||
.\".It Fl \-historical Pq Fl H
|
.It Fl \-historical Pq Fl H
|
||||||
|
Value commodities at the time of their acquisition.
|
||||||
.It Fl \-invert
|
.It Fl \-invert
|
||||||
Invert the value of amounts shown.
|
Invert the value of amounts shown.
|
||||||
.It Fl \-market Pq Fl V
|
.It Fl \-market Pq Fl V
|
||||||
|
|
@ -366,7 +367,9 @@ Alias for
|
||||||
Ignore init files and environment variables for the
|
Ignore init files and environment variables for the
|
||||||
.Nm
|
.Nm
|
||||||
run.
|
run.
|
||||||
.\".It Fl \-auto-match
|
.It Fl \-auto-match
|
||||||
|
Automatically match accounts from ledger journal for transactions
|
||||||
|
during csv convert.
|
||||||
.It Fl \-aux-date
|
.It Fl \-aux-date
|
||||||
Show auxiliary dates for all calculations.
|
Show auxiliary dates for all calculations.
|
||||||
Alias for
|
Alias for
|
||||||
|
|
@ -378,7 +381,9 @@ running totals.
|
||||||
Specify the format to use for the
|
Specify the format to use for the
|
||||||
.Ic balance
|
.Ic balance
|
||||||
report.
|
report.
|
||||||
.\".It Fl \-base
|
.It Fl \-base
|
||||||
|
Reduce convertible commodities down the bottom of the conversion, e.g.
|
||||||
|
display time in seconds.
|
||||||
.It Fl \-basis Pq Fl B
|
.It Fl \-basis Pq Fl B
|
||||||
Report the cost basis on all posting.
|
Report the cost basis on all posting.
|
||||||
Alias for
|
Alias for
|
||||||
|
|
@ -460,7 +465,12 @@ Print dates using
|
||||||
Refer to
|
Refer to
|
||||||
.Xr strftime 3
|
.Xr strftime 3
|
||||||
for details on the format string syntax.
|
for details on the format string syntax.
|
||||||
.\" .It Fl \-datetime-format Ar FMT
|
.It Fl \-datetime-format Ar DATETIMEFMT
|
||||||
|
Print datetimes using
|
||||||
|
.Ar DATETIMEFMT .
|
||||||
|
Refer to
|
||||||
|
.Xr strftime 3
|
||||||
|
for details on the format string syntax.
|
||||||
.It Fl \-date-width Ar INT
|
.It Fl \-date-width Ar INT
|
||||||
Specify the width, in characters, of the date column in the
|
Specify the width, in characters, of the date column in the
|
||||||
.Ic register
|
.Ic register
|
||||||
|
|
@ -550,7 +560,9 @@ Related to the
|
||||||
.Ic equity
|
.Ic equity
|
||||||
command. Gives current account balances in the form of a register
|
command. Gives current account balances in the form of a register
|
||||||
report.
|
report.
|
||||||
.\".It Fl \-exact
|
.It Fl \-exact
|
||||||
|
Report beginning and ending of periods by the date of the first and last
|
||||||
|
posting occurring in that period.
|
||||||
.It Fl \-exchange Ar COMMODITY Oo , Ar COMMODITY, ... Oc Pq Fl X
|
.It Fl \-exchange Ar COMMODITY Oo , Ar COMMODITY, ... Oc Pq Fl X
|
||||||
Display values in terms of the given
|
Display values in terms of the given
|
||||||
.Ar COMMODITY .
|
.Ar COMMODITY .
|
||||||
|
|
@ -628,7 +640,10 @@ is also printed if
|
||||||
is run without a command.
|
is run without a command.
|
||||||
.It Fl \-immediate
|
.It Fl \-immediate
|
||||||
Evaluate calculations immediately rather than lazily.
|
Evaluate calculations immediately rather than lazily.
|
||||||
.\".It Fl \-import
|
.It Fl \-import Ar FILE
|
||||||
|
Import
|
||||||
|
.Ar FILE
|
||||||
|
as Python module.
|
||||||
.It Fl \-init-file Ar FILE Pq Fl i
|
.It Fl \-init-file Ar FILE Pq Fl i
|
||||||
Read
|
Read
|
||||||
.Ar FILE
|
.Ar FILE
|
||||||
|
|
@ -673,7 +688,9 @@ purchased.
|
||||||
.It Fl \-lots
|
.It Fl \-lots
|
||||||
Report the date and price at which each commodity was purchased in
|
Report the date and price at which each commodity was purchased in
|
||||||
a balance report.
|
a balance report.
|
||||||
.\".It Fl \-lots-actual
|
.It Fl \-lots-actual
|
||||||
|
Preserve the uniqueness of commodities so they aren't merged during
|
||||||
|
reporting without printing the lot annotations.
|
||||||
.It Fl \-market Pq Fl V
|
.It Fl \-market Pq Fl V
|
||||||
Use the latest market value for all commodities.
|
Use the latest market value for all commodities.
|
||||||
.It Fl \-master-account Ar STR
|
.It Fl \-master-account Ar STR
|
||||||
|
|
@ -837,9 +854,23 @@ of the transaction.
|
||||||
Show all postings in a transaction, similar to
|
Show all postings in a transaction, similar to
|
||||||
.Fl \-related
|
.Fl \-related
|
||||||
but show both sides of each transaction.
|
but show both sides of each transaction.
|
||||||
.\".It Fl \-revalued
|
.It Fl \-revalued
|
||||||
.\".It Fl \-revalued-only
|
Report discrepancy in values for manual reports by inserting
|
||||||
.\".It Fl \-revalued-total Ar EXPR
|
<Revalued>
|
||||||
|
postings.
|
||||||
|
This is implied when using
|
||||||
|
the
|
||||||
|
.Fl \-exchange Pq Fl X
|
||||||
|
or
|
||||||
|
.Fl \-market Pq Fl V
|
||||||
|
option.
|
||||||
|
.It Fl \-revalued-only
|
||||||
|
Show only
|
||||||
|
<Revalued>
|
||||||
|
postings.
|
||||||
|
.It Fl \-revalued-total
|
||||||
|
Display the sum of the revalued postings as the running total, which serves
|
||||||
|
to show unrealized capital in a gain/losses report.
|
||||||
.\".It Fl \-rich-data
|
.\".It Fl \-rich-data
|
||||||
.It Fl \-seed Ar INT
|
.It Fl \-seed Ar INT
|
||||||
Set the random seed to
|
Set the random seed to
|
||||||
|
|
@ -852,8 +883,9 @@ Execute a
|
||||||
.Nm
|
.Nm
|
||||||
script.
|
script.
|
||||||
.It Fl \-sort Ar EXPR Pq Fl S
|
.It Fl \-sort Ar EXPR Pq Fl S
|
||||||
Sort the register report based on the value expression given to sort.
|
Sort the register report based on the value expression
|
||||||
.\".It Fl \-sort-all
|
.Ar EXPR .
|
||||||
|
.\".It Fl \-sort-all Ar EXPR
|
||||||
.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
|
||||||
|
|
@ -879,7 +911,10 @@ entries. Only useful on a register report. Alias for
|
||||||
.It Fl \-time-colon
|
.It Fl \-time-colon
|
||||||
Display the value for commodities based on seconds as hours and minutes.
|
Display the value for commodities based on seconds as hours and minutes.
|
||||||
Thus 8100s will be displayed as 2:15h instead of 2.25h.
|
Thus 8100s will be displayed as 2:15h instead of 2.25h.
|
||||||
.\".It Fl \-time-report
|
.It Fl \-time-report
|
||||||
|
Add two columns to the
|
||||||
|
.Ic balance
|
||||||
|
report to show the earliest checkin and checkout times for timelog entries.
|
||||||
.It Fl \-total Ar EXPR Pq Fl T
|
.It Fl \-total Ar EXPR Pq Fl T
|
||||||
Define a value expression used to calculate the total in reports.
|
Define a value expression used to calculate the total in reports.
|
||||||
.It Fl \-total-data Pq Fl J
|
.It Fl \-total-data Pq Fl J
|
||||||
|
|
@ -931,7 +966,8 @@ precision.
|
||||||
Show 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
|
||||||
|
Set a global value expression annotation.
|
||||||
.It Fl \-verbose
|
.It Fl \-verbose
|
||||||
Print detailed information on the execution of
|
Print detailed information on the execution of
|
||||||
.Nm .
|
.Nm .
|
||||||
|
|
@ -941,7 +977,9 @@ slowdown. When combined with
|
||||||
.Fl \-debug Ar CODE
|
.Fl \-debug Ar CODE
|
||||||
.Nm
|
.Nm
|
||||||
will produce memory trace information.
|
will produce memory trace information.
|
||||||
.\".It Fl \-verify-memory
|
.It Fl \-verify-memory
|
||||||
|
Verify that every constructed object is properly destructed. This is for
|
||||||
|
debugging purposes only.
|
||||||
.It Fl \-version
|
.It Fl \-version
|
||||||
Print version information and exit.
|
Print version information and exit.
|
||||||
.It Fl \-weekly Pq Fl W
|
.It Fl \-weekly Pq Fl W
|
||||||
|
|
|
||||||
|
|
@ -5468,7 +5468,7 @@ Redirect output to @file{FILE}.
|
||||||
Specify an options file.
|
Specify an options file.
|
||||||
|
|
||||||
@item --import @var{FILE}
|
@item --import @var{FILE}
|
||||||
@value{FIXME:UNDOCUMENTED}
|
Import @var{FILE} as Python module.
|
||||||
|
|
||||||
@item --account @var{STR}
|
@item --account @var{STR}
|
||||||
@itemx -a @var{STR}
|
@itemx -a @var{STR}
|
||||||
|
|
@ -5733,8 +5733,9 @@ Set expected freshness of prices in @var{INT} minutes.
|
||||||
@itemx -Q
|
@itemx -Q
|
||||||
Download quotes using the script named @file{getquote}.
|
Download quotes using the script named @file{getquote}.
|
||||||
|
|
||||||
@item --getquote @var{FILE}
|
@c FIXME: The option doesn't exist currently.
|
||||||
Sets the path to a user-defined script to download commodity prices.
|
@c @item --getquote @var{FILE}
|
||||||
|
@c Sets the path to a user-defined script to download commodity prices.
|
||||||
|
|
||||||
@item --quantity
|
@item --quantity
|
||||||
@itemx -O
|
@itemx -O
|
||||||
|
|
@ -5884,7 +5885,6 @@ days by day.
|
||||||
@c @end smallexample
|
@c @end smallexample
|
||||||
@c @smallexample @c output:
|
@c @smallexample @c output:
|
||||||
@c @end smallexample
|
@c @end smallexample
|
||||||
@value{FIXME:UNDOCUMENTED}
|
|
||||||
|
|
||||||
@item --decimal-comma
|
@item --decimal-comma
|
||||||
Direct Ledger to parse journals using the European standard comma as
|
Direct Ledger to parse journals using the European standard comma as
|
||||||
|
|
@ -5892,8 +5892,9 @@ a decimal separator, not the usual period.
|
||||||
|
|
||||||
@item --download
|
@item --download
|
||||||
@itemx -Q
|
@itemx -Q
|
||||||
Direct Ledger to download prices using the script defined via the option
|
Direct Ledger to download prices.
|
||||||
@option{--getquote @var{FILE}}.
|
@c using the script defined via the option
|
||||||
|
@c @option{--getquote @var{FILE}}.
|
||||||
|
|
||||||
@item --explicit
|
@item --explicit
|
||||||
@c see test/baseline/opt-explicit.test
|
@c see test/baseline/opt-explicit.test
|
||||||
|
|
@ -5903,11 +5904,12 @@ Direct Ledger to download prices using the script defined via the option
|
||||||
@itemx -f @var{FILE}
|
@itemx -f @var{FILE}
|
||||||
Specify the input @file{FILE} for this invocation.
|
Specify the input @file{FILE} for this invocation.
|
||||||
|
|
||||||
@item --getquote @var{FILE}
|
@c FIXME: The option doesn't exist currently.
|
||||||
@cindex getquote
|
@c @item --getquote @var{FILE}
|
||||||
@cindex download prices
|
@c @cindex getquote
|
||||||
Tell ledger where to find the user defined script to download prices
|
@c @cindex download prices
|
||||||
information.
|
@c Tell ledger where to find the user defined script to download prices
|
||||||
|
@c information.
|
||||||
|
|
||||||
@item --input-date-format @var{DATE_FORMAT}
|
@item --input-date-format @var{DATE_FORMAT}
|
||||||
Specify the input date format for journal entries. For example,
|
Specify the input date format for journal entries. For example,
|
||||||
|
|
@ -5990,8 +5992,9 @@ based commodity as real hours and minutes.
|
||||||
For example 8100 seconds by default will be displayed as 2.25 whereas
|
For example 8100 seconds by default will be displayed as 2.25 whereas
|
||||||
with the @option{--time-colon} option they will be displayed as 2:15.
|
with the @option{--time-colon} option they will be displayed as 2:15.
|
||||||
|
|
||||||
@item --value-expr @var{FIXME}
|
@item --value-expr @var{VEXPR}
|
||||||
@value{FIXME:UNDOCUMENTED}
|
Set a global value expression annotation.
|
||||||
|
@c needs example
|
||||||
|
|
||||||
@end ftable
|
@end ftable
|
||||||
|
|
||||||
|
|
@ -6051,9 +6054,8 @@ Set the width in characters of the amount column in the
|
||||||
Anonymize registry output, mostly for sending in bug reports.
|
Anonymize registry output, mostly for sending in bug reports.
|
||||||
|
|
||||||
@item --auto-match
|
@item --auto-match
|
||||||
@c Automatically match accounts from ledger journal when using convert command
|
Automatically match accounts from ledger journal for transactions
|
||||||
@c see test/baseline/opt-auto-match.dat
|
during csv convert.
|
||||||
@value{FIXME:UNDOCUMENTED}
|
|
||||||
|
|
||||||
@item --aux-date
|
@item --aux-date
|
||||||
@itemx --effective
|
@itemx --effective
|
||||||
|
|
@ -6077,10 +6079,8 @@ Strings}). The default is:
|
||||||
@end smallexample
|
@end smallexample
|
||||||
|
|
||||||
@item --base
|
@item --base
|
||||||
@c Report commodity in the base commodity s instead of h
|
Reduce convertible commodities down the bottom of the conversion, e.g.
|
||||||
@c Does this apply to other commodities too?
|
display time in seconds. This also applies to custom commodity conversions.
|
||||||
@c see test/baseline/opt-base.test/
|
|
||||||
@value{FIXME:UNDOCUMENTED}
|
|
||||||
|
|
||||||
@item --basis
|
@item --basis
|
||||||
@itemx -B
|
@itemx -B
|
||||||
|
|
@ -6200,10 +6200,7 @@ Specify the width, in characters, of the date column in the
|
||||||
@command{register} report.
|
@command{register} report.
|
||||||
|
|
||||||
@item --datetime-format @var{DATETIME_FORMAT}
|
@item --datetime-format @var{DATETIME_FORMAT}
|
||||||
@c Specify the format ledger should use to print datetimes in
|
Specify the format ledger should use to print datetimes.
|
||||||
@c @command{balance} @option{--timelog-report} reports.
|
|
||||||
@c see test/baseline/opt-datetime-format.test
|
|
||||||
@value{FIXME:UNDOCUMENTED}
|
|
||||||
|
|
||||||
@item --dc
|
@item --dc
|
||||||
Display register or balance in debit/credit format If you use
|
Display register or balance in debit/credit format If you use
|
||||||
|
|
@ -6311,7 +6308,8 @@ command}). Gives current account balances in the form of a register
|
||||||
report.
|
report.
|
||||||
|
|
||||||
@item --exact
|
@item --exact
|
||||||
@value{FIXME:UNDOCUMENTED}
|
Report beginning and ending of periods by the date of the first and last
|
||||||
|
posting occurring in that period.
|
||||||
|
|
||||||
@item --exchange @var{COMMODITY}
|
@item --exchange @var{COMMODITY}
|
||||||
@itemx -X @var{COMMODITY}
|
@itemx -X @var{COMMODITY}
|
||||||
|
|
@ -6389,10 +6387,10 @@ Print the first @var{INT} entries. Opposite of @option{--tail
|
||||||
|
|
||||||
@item --historical
|
@item --historical
|
||||||
@itemx -H
|
@itemx -H
|
||||||
@value{FIXME:UNDOCUMENTED}
|
Value commodities at the time of their acquisition.
|
||||||
|
|
||||||
@item --immediate
|
@item --immediate
|
||||||
@value{FIXME:UNDOCUMENTED}
|
Evaluate calculations immediately rather than lazily.
|
||||||
|
|
||||||
@item --inject
|
@item --inject
|
||||||
Use @code{Expected} amounts in calculations. In case you know
|
Use @code{Expected} amounts in calculations. In case you know
|
||||||
|
|
@ -6433,8 +6431,8 @@ Report the date and price at which each commodity was purchased in
|
||||||
a balance report.
|
a balance report.
|
||||||
|
|
||||||
@item --lots-actual
|
@item --lots-actual
|
||||||
@c see test/baseline/opt-lots-actual.test
|
Preserve the uniqueness of commodities so they aren't merged during
|
||||||
@value{FIXME:UNDOCUMENTED}
|
reporting without printing the lot annotations.
|
||||||
|
|
||||||
@item --market
|
@item --market
|
||||||
@itemx -V
|
@itemx -V
|
||||||
|
|
@ -6589,15 +6587,16 @@ Show all postings in a transaction, similar to @option{--related} but
|
||||||
show both @emph{sides} of each transaction.
|
show both @emph{sides} of each transaction.
|
||||||
|
|
||||||
@item --revalued
|
@item --revalued
|
||||||
@c see test/baeline/opt-revalued.test
|
Report discrepancy in values for manual reports by inserting @code{<Revalued>}
|
||||||
@value{FIXME:UNDOCUMENTED}
|
postings. This is implied when using the @option{--exchange} or
|
||||||
|
@option{--market} option.
|
||||||
|
|
||||||
@item --revalued-only
|
@item --revalued-only
|
||||||
@c see test/baeline/opt-revalued-only.test
|
Show only @code{<Revalued>} postings.
|
||||||
@value{FIXME:UNDOCUMENTED}
|
|
||||||
|
|
||||||
@item --revalued-total @var{FIXME}
|
@item --revalued-total @var{FIXME}
|
||||||
@value{FIXME:UNDOCUMENTED}
|
Display the sum of the revalued postings as the running total, which serves
|
||||||
|
to show unrealized capital in a gain/losses report.
|
||||||
|
|
||||||
@item --rich-data
|
@item --rich-data
|
||||||
@itemx --detail
|
@itemx --detail
|
||||||
|
|
@ -6637,9 +6636,8 @@ Report only the last @var{INT} entries. Only useful in
|
||||||
a @command{register} report.
|
a @command{register} report.
|
||||||
|
|
||||||
@item --time-report
|
@item --time-report
|
||||||
@c Display begin and end time for each timelog entry in balance reports
|
Add two columns to the balance report to show the earliest checkin and
|
||||||
@c see test/baseline/opt-time-report.test
|
checkout times for timelog entries.
|
||||||
@value{FIXME:UNDOCUMENTED}
|
|
||||||
|
|
||||||
@item --total @var{VEXPR}
|
@item --total @var{VEXPR}
|
||||||
@itemx -T @var{VEXPR}
|
@itemx -T @var{VEXPR}
|
||||||
|
|
@ -9708,7 +9706,8 @@ slowdown. When combined with @option{--debug @var{CODE}} ledger will
|
||||||
produce memory trace information.
|
produce memory trace information.
|
||||||
|
|
||||||
@item --verify-memory
|
@item --verify-memory
|
||||||
@value{FIXME:UNDOCUMENTED}
|
Verify that every constructed object is properly destructed. This is for
|
||||||
|
debugging purposes only.
|
||||||
|
|
||||||
@item --version
|
@item --version
|
||||||
Print version information and exit.
|
Print version information and exit.
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue