summaryrefslogtreecommitdiff
path: root/option.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2008-07-17 05:02:36 -0400
committerJohn Wiegley <johnw@newartisans.com>2008-07-17 05:02:36 -0400
commit45f6aa3f93b9b1dce16c08bebb030fd25d87749a (patch)
tree71531102254a51d641144930f9c60e0bbe8fddc2 /option.cc
parent4eaad4f332e4a6369915bd4917db67492f65cdb9 (diff)
downloadfork-ledger-45f6aa3f93b9b1dce16c08bebb030fd25d87749a.tar.gz
fork-ledger-45f6aa3f93b9b1dce16c08bebb030fd25d87749a.tar.bz2
fork-ledger-45f6aa3f93b9b1dce16c08bebb030fd25d87749a.zip
Reverted changes to option.cc in commit 2bdafd71, since I do not want to
change the exclusive (as opposed to inclusive) behavior of -e DATE.
Diffstat (limited to 'option.cc')
-rw-r--r--option.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/option.cc b/option.cc
index bc173e84..6cb2130d 100644
--- a/option.cc
+++ b/option.cc
@@ -484,17 +484,17 @@ OPT_BEGIN(begin, "b:") {
OPT_BEGIN(end, "e:") {
char buf[128];
interval_t interval(optarg);
- if (! interval.end)
+ if (! interval.begin)
throw new error(std::string("Could not determine end of period '") +
optarg + "'");
if (! report->predicate.empty())
report->predicate += "&";
report->predicate += "d<[";
- report->predicate += interval.end.to_string();
+ report->predicate += interval.begin.to_string();
report->predicate += "]";
- terminus = interval.end;
+ terminus = interval.begin;
} OPT_END(end);
OPT_BEGIN(current, "c") {