quentinsf/icsv2ledger — pull request #36 by thdox (2012-10-30 15:06:19+00:00)
Title: Move from OptionParser to argparse

Options are now read from hard coded default, overridden by options from configuration file if any, and finally overridden by options from command line if any.

Here is a partial list of changes:
- rename from "--config" to "--config-file". "-c" is preserved
- ledger_file default is ".ledger" like Ledger itself
- config_file default is now .icsv2ledgerrc
- mapping_file default is now .icsv2ledgerrc-mapping
- rename from "transaction_template" to "template_file"
- template_file default is now .icsv2ledgerrc-template
- currency default is now from locale
- date default is now 1
- desc default is now 2
- debit default is now 3
- credit default is now 4
- rename from "clear" to "clear_screen" (because conflict with dict.clear)

I tested all options through command line. I also tested addons and tags. It works for me on my system (linux debian mint edition with python 2.7.3rc2).

While testing everything, I discovered some bugs that were present in master. (I have tested both in master and in my branch). I will provide patches.

Because of the move to argparse I restructured README.md, and also while testing I enriched documentation too.