* tripun goel <[email protected]> [2014-06-18 08:00]: > 2. What are chain pre-post and chain-post handlers?
I don't know, and maybe this is the right place to implement it... but I'm wondering if the rounding shouldn't take place somewhere in src/amount.cc. Save your example in a file and run: ledger -f test.ledger bal --debug amount to start with. > 3. How to add a new '--' option to command line or add a directive? To add a command line option, you need to add an OPT() so the command line option is parsed correctly. You also need an OPTION() so it's handled correctly. grep the source to see how other command line options are handled. To add a commodity or account directive, look at src/textual.cc bool instance_t::general_directive(char * line) For account directives: instance_t::account_directive For commodity directives: instance_t::commodity_directive -- 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.
