summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-02-17 06:51:40 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-02-17 06:51:40 -0400
commit67fd38e073b49e7dd7bf6ae50b4fb1a7778daa23 (patch)
tree60e57324fd09cd66c3974397746ad4dc46a24adf
parent8c0bea159c8cfb0938e5682a0225a11314eba8a5 (diff)
downloadfork-ledger-67fd38e073b49e7dd7bf6ae50b4fb1a7778daa23.tar.gz
fork-ledger-67fd38e073b49e7dd7bf6ae50b4fb1a7778daa23.tar.bz2
fork-ledger-67fd38e073b49e7dd7bf6ae50b4fb1a7778daa23.zip
The option --cost is now an alias for --basis
-rw-r--r--src/report.cc3
-rw-r--r--src/report.h1
2 files changed, 1 insertions, 3 deletions
diff --git a/src/report.cc b/src/report.cc
index 771e1950..881f0518 100644
--- a/src/report.cc
+++ b/src/report.cc
@@ -371,7 +371,7 @@ option_t<report_t> * report_t::lookup_option(const char * p)
case 'b':
OPT(balance_format_);
else OPT(base);
- else OPT(basis);
+ else OPT_ALT(basis, cost);
else OPT_(begin_);
else OPT(budget);
else OPT(by_payee);
@@ -386,7 +386,6 @@ 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(cost);
else OPT_(current);
break;
case 'd':
diff --git a/src/report.h b/src/report.h
index 7c68c678..e85d1d34 100644
--- a/src/report.h
+++ b/src/report.h
@@ -262,7 +262,6 @@ public:
parent->HANDLER(collapse).on();
});
- OPTION(report_t, cost);
OPTION(report_t, csv_format_);
OPTION(report_t, current); // -c