summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2008-04-04 18:30:36 +0000
committerJohn Wiegley <johnw@newartisans.com>2008-04-13 05:11:17 -0400
commit925597a0ff2d899bece416ae144255b9bd06d2d2 (patch)
tree5af11e277a0288dde306d975d3fe1ef505f800d6
parent513fbd8b151067585011e84d90904648688e5c6e (diff)
downloadfork-ledger-925597a0ff2d899bece416ae144255b9bd06d2d2.tar.gz
fork-ledger-925597a0ff2d899bece416ae144255b9bd06d2d2.tar.bz2
fork-ledger-925597a0ff2d899bece416ae144255b9bd06d2d2.zip
Fixed #36: -e wasn't parsing the passed in date correctly.
-rw-r--r--option.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/option.cc b/option.cc
index ceedd519..25ce09f1 100644
--- a/option.cc
+++ b/option.cc
@@ -482,17 +482,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") {