I've just been trying the --strict/--pedantic options for the first time
and I'm a little surprised by their behaviour. It seems they only work
on uncleared transactions. IMHO that is incorrect, it is easy to
mistakenly edit an account name long after it has been cleared and these
checks won't then notice it. Have I missed something obvious or is this
a bug?
Phil
With a single entry file, strict.dat:
---
2012/06/05=2012/06/06 Sainsburys
expenses:groceries £18.89
assets:current
---
the following works as I had expected:
$ ledger -f strict.dat --strict reg
Warning: "[...] strict.dat", line 2: Unknown account 'expenses:groceries'
Warning: "[...] strict.dat", line 2: Unknown commodity '£'
Warning: "[...] strict.dat", line 3: Unknown account 'assets:current'
12-Jun-05 Sainsburys expenses:groceries £18.89 £18.89
assets:current £-18.89 0
Changing the file to a cleared transaction gives no warning:
---
2012/06/05=2012/06/06 * Sainsburys
expenses:groceries £18.89
assets:current
---
$ ledger -f strict.dat --strict reg
12-Jun-05 Sainsburys expenses:groceries £18.89 £18.89
assets:current £-18.89 0
--
---
You received this message because you are subscribed to the Google Groups
"Ledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.