Neat. I'll get that in the docs. Thanks. On 2011-11-16, John Wiegley <[email protected]> wrote: >>>>>> Craig Earls <[email protected]> writes: > >> I am combing bug reports for interesting undocumented features and I ran >> across --inject. I spent some time going through the code but can't >> really >> see what it is for. Anyone have any clues? > > For my paychecks at a previous employer, I knew how much should be in them. > This wasn't always the amount that was there. So I had a metadata field > like > this: > > ; Expected:: $1,000.00 > > Then I would "inject" these amounts into a query like this: > > ledger reg --inject=Expected '^income:foo' > > That way, Income:FOO, which is a negative value, would be balanced by the > injected Expected values. If the final results was positive, they owed me > that much money. > > This was intended a shorthand for something that I wasn't able to find an > easier way to do. > > John >
-- Craig, Corona De Tucson, AZ enderw88.wordpress.com
