* Leo Bossmann <leo.bossm...@gmail.com> [2016-03-24 05:55]: > I have attached a test file with three transactions, one cleared, one > pending, one uncleared. When generating a balance with the --pedantic and > --explicit options set, I expected to get errors for every account that is > not pre-declared. But I only get an error for the uncleared transaction. > > What this means is that a cleared or pending transaction always defines its > accounts, is that right? > > Is there any way to enforce --pedantic on cleared transactions?
Add "account foo" to the beginning of the file and --explicit --pendatic will show the error. The way it seems to work is that --explicit only works on cleared transactions if there is one (any) pre-declaration of that type (e.g. account, tag, commodity). This has caused a lot of consusion and I think it's a bug: http://bugs.ledger-cli.org/show_bug.cgi?id=771 -- Martin Michlmayr http://www.cyrius.com/ -- --- 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 ledger-cli+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.