* John Wiegley <[email protected]> [2015-02-04 17:34]: > >>>>> Martin Michlmayr <[email protected]> writes: > > > You need --strict --explicit > > What does explicit do exactly, Martin? I couldn't find its use in > the source code earlier today.
It's required so --strict will also look at cleared transactions. Without --explicit, cleared transactions are assumed to be fully valid, including account name, commodity, etc. In src/session.cc it sets journal->force_checking This is from your 2012 announcement: | When --explicit is given, *only* predeclarations establish the | "known-ness" of parsed entities. I.e., if you didn't predeclare | it, you don't expect to ever see it. Over the years, I've seen a lot of confusion from users that --strict/--pedantic didn't work and often the reason was that --explicit was missing. Maybe it might make sense to make it the default and add an option to say that cleared transactions should be ignored. -- 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
