summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-02-22 02:10:07 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-02-22 04:51:11 -0400
commit3e543d187cc7ae39fe7654ce241ca9b5039ada3c (patch)
treebbf91946411dfde2561ce420cbd0398575c7b9cb /src
parent2d56d9bc3a99b3a9bf94363d16bd92b191677855 (diff)
downloadfork-ledger-3e543d187cc7ae39fe7654ce241ca9b5039ada3c.tar.gz
fork-ledger-3e543d187cc7ae39fe7654ce241ca9b5039ada3c.tar.bz2
fork-ledger-3e543d187cc7ae39fe7654ce241ca9b5039ada3c.zip
Changed --colors to --color, to match Git
Diffstat (limited to 'src')
-rw-r--r--src/report.cc4
-rw-r--r--src/report.h22
2 files changed, 13 insertions, 13 deletions
diff --git a/src/report.cc b/src/report.cc
index afd8cc11..ea2c2bae 100644
--- a/src/report.cc
+++ b/src/report.cc
@@ -356,7 +356,7 @@ option_t<report_t> * report_t::lookup_option(const char * p)
else OPT(amount_);
else OPT(amount_data);
else OPT(anon);
- else OPT_ALT(colors, ansi);
+ else OPT_ALT(color, ansi);
else OPT(average);
else OPT(account_width_);
else OPT(amount_width_);
@@ -378,7 +378,7 @@ option_t<report_t> * report_t::lookup_option(const char * p)
else OPT_ALT(comm_as_account, commodity_as_account);
else OPT(collapse);
else OPT(collapse_if_zero);
- else OPT(colors);
+ else OPT(color);
else OPT(columns_);
else OPT_ALT(basis, cost);
else OPT_(current);
diff --git a/src/report.h b/src/report.h
index f8077d0b..ffa39b90 100644
--- a/src/report.h
+++ b/src/report.h
@@ -234,9 +234,9 @@ public:
OPTION__(report_t, balance_format_, CTOR(report_t, balance_format_) {
on("%(ansify_if(print(scrub(display_total), 20), \"red\", "
- " colors & scrub(display_total) < 0))"
+ " color & scrub(display_total) < 0))"
" %(!options.flat ? depth_spacer : \"\")"
- "%-(ansify_if(partial_account(options.flat), \"blue\", colors))\n");
+ "%-(ansify_if(partial_account(options.flat), \"blue\", color))\n");
});
OPTION(report_t, base);
@@ -272,7 +272,7 @@ public:
OPTION(report_t, comm_as_payee); // -x
OPTION(report_t, code_as_account);
OPTION(report_t, comm_as_account);
- OPTION(report_t, colors);
+ OPTION(report_t, color);
OPTION_(report_t, collapse, DO() { // -n
// Make sure that balance reports are collapsed too, but only apply it
@@ -498,26 +498,26 @@ public:
});
OPTION__(report_t, register_format_, CTOR(report_t, register_format_) {
- on("%(ansify_if(print(date, date_width), \"green\", colors & date > today))"
+ on("%(ansify_if(print(date, date_width), \"green\", color & date > today))"
" %(ansify_if(print(truncate(payee, payee_width), payee_width), "
- " \"bold\", colors & !cleared))"
+ " \"bold\", color & !cleared))"
" %(ansify_if(print(truncate(account, account_width, abbrev_len), "
- " account_width), \"blue\", colors))"
+ " account_width), \"blue\", color))"
" %(ansify_if(print(scrub(display_amount), amount_width, "
" 3 + date_width + payee_width + account_width + amount_width), "
- " \"red\", colors & scrub(display_amount) < 0))"
+ " \"red\", color & scrub(display_amount) < 0))"
" %(ansify_if(print(scrub(display_total), total_width, "
" 4 + date_width + payee_width + account_width + amount_width "
- " + total_width), \"red\", colors & scrub(display_amount) < 0))\n%/"
+ " + total_width), \"red\", color & scrub(display_amount) < 0))\n%/"
"%(print(\" \", 2 + date_width + payee_width))"
"%(ansify_if(print(truncate(account, account_width, abbrev_len), "
- " account_width), \"blue\", colors))"
+ " account_width), \"blue\", color))"
" %(ansify_if(print(scrub(display_amount), amount_width, "
" 3 + date_width + payee_width + account_width + amount_width), "
- " \"red\", colors & scrub(display_amount) < 0))"
+ " \"red\", color & scrub(display_amount) < 0))"
" %(ansify_if(print(scrub(display_total), total_width, "
" 4 + date_width + payee_width + account_width + amount_width "
- " + total_width), \"red\", colors & scrub(display_amount) < 0))\n");
+ " + total_width), \"red\", color & scrub(display_amount) < 0))\n");
});
OPTION(report_t, related); // -r