From 3e13f39f94ed02635df1567d4b9908eb5797ee64 Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Fri, 7 Jun 2024 07:05:03 -0700 Subject: [PATCH] imp: diff, prices: improve help layout --- hledger/Hledger/Cli/Commands/Diff.md | 25 +++++++++++++------------ hledger/Hledger/Cli/Commands/Prices.md | 11 ++++++----- hledger/Hledger/Cli/Commands/Tags.md | 3 +-- 3 files changed, 20 insertions(+), 19 deletions(-) diff --git a/hledger/Hledger/Cli/Commands/Diff.md b/hledger/Hledger/Cli/Commands/Diff.md index 0f24e6c49..f1e52db74 100644 --- a/hledger/Hledger/Cli/Commands/Diff.md +++ b/hledger/Hledger/Cli/Commands/Diff.md @@ -4,23 +4,24 @@ Compares a particular account's transactions in two input files. It shows any transactions to this account which are in one file but not in the other. -More precisely, for each posting affecting this account in either -file, it looks for a corresponding posting in the other file which -posts the same amount to the same account (ignoring date, description, -etc.) Since postings not transactions are compared, this also works -when multiple bank transactions have been combined into a single -journal entry. - -This is useful eg if you have downloaded an account's transactions -from your bank (eg as CSV data). When hledger and your bank disagree -about the account balance, you can compare the bank data with your -journal to find out the cause. - ```flags Flags: no command-specific flags ``` +More precisely: for each posting affecting this account in either file, +this command looks for a corresponding posting in the other file which +posts the same amount to the same account (ignoring date, description, +etc). + +Since it compares postings, not transactions, this also works when +multiple bank transactions have been combined into a single journal entry. + +This command is useful eg if you have downloaded an account's +transactions from your bank (eg as CSV data): when hledger and your +bank disagree about the account balance, you can compare the bank data +with your journal to find out the cause. + Examples: ```cli diff --git a/hledger/Hledger/Cli/Commands/Prices.md b/hledger/Hledger/Cli/Commands/Prices.md index 9cdb61cce..bf9ff029f 100644 --- a/hledger/Hledger/Cli/Commands/Prices.md +++ b/hledger/Hledger/Cli/Commands/Prices.md @@ -4,6 +4,12 @@ Print the [market prices](hledger.md#p-directive) declared with P directives. With --infer-market-prices, also show any additional prices inferred from [costs](hledger.md#costs). With --show-reverse, also show additional prices inferred by reversing known prices. +```flags +Flags: + --show-reverse also show the prices inferred by reversing known + prices +``` + Price amounts are always displayed with their full precision, except for reverse prices which are limited to 8 decimal digits. @@ -14,8 +20,3 @@ it will show the same prices used internally to calculate value reports. But if in doubt, you can inspect those directly by running the value report with --debug=2. -```flags -Flags: - --show-reverse also show the prices inferred by reversing known - prices -``` diff --git a/hledger/Hledger/Cli/Commands/Tags.md b/hledger/Hledger/Cli/Commands/Tags.md index 659e17997..e174f5129 100644 --- a/hledger/Hledger/Cli/Commands/Tags.md +++ b/hledger/Hledger/Cli/Commands/Tags.md @@ -1,8 +1,7 @@ ## tags List the tags used in the journal, or their values. - - + ```flags Flags: