diff options
author | John Wiegley <johnw@newartisans.com> | 2006-03-13 08:39:12 +0000 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-04-13 02:41:30 -0400 |
commit | 82d0ee869be4636fb285f7fc61620ecd747f46f9 (patch) | |
tree | e65d7bff14d13e71738d55660a39938c2e4973eb /config.cc | |
parent | fd525ec3821f16ec3df8096a0080da797f7946c5 (diff) | |
download | fork-ledger-82d0ee869be4636fb285f7fc61620ecd747f46f9.tar.gz fork-ledger-82d0ee869be4636fb285f7fc61620ecd747f46f9.tar.bz2 fork-ledger-82d0ee869be4636fb285f7fc61620ecd747f46f9.zip |
Added --ansi and --ansi-invert options.
Diffstat (limited to 'config.cc')
-rw-r--r-- | config.cc | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -1115,6 +1115,16 @@ OPT_BEGIN(total_data, "J") { config->format_string = config->plot_total_format; } OPT_END(total_data); +OPT_BEGIN(ansi, "") { + format_t::ansi_codes = true; + format_t::ansi_invert = false; +} OPT_END(ansi); + +OPT_BEGIN(ansi_invert, "") { + format_t::ansi_codes = + format_t::ansi_invert = true; +} OPT_END(ansi); + ////////////////////////////////////////////////////////////////////// // // Commodity reporting @@ -1192,6 +1202,8 @@ option_t config_options[CONFIG_OPTIONS_SIZE] = { { "add-budget", '\0', false, opt_add_budget, false }, { "amount", 't', true, opt_amount, false }, { "amount-data", 'j', false, opt_amount_data, false }, + { "ansi", '\0', false, opt_ansi, false }, + { "ansi-invert", '\0', false, opt_ansi_invert, false }, { "average", 'A', false, opt_average, false }, { "balance-format", '\0', true, opt_balance_format, false }, { "basis", 'B', false, opt_basis, false }, |