diff options
author | John Wiegley <johnw@newartisans.com> | 2008-04-04 18:30:36 +0000 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-04-13 05:11:17 -0400 |
commit | 925597a0ff2d899bece416ae144255b9bd06d2d2 (patch) | |
tree | 5af11e277a0288dde306d975d3fe1ef505f800d6 | |
parent | 513fbd8b151067585011e84d90904648688e5c6e (diff) | |
download | fork-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.cc | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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") { |