data: Properly captures expanded hints

This commit is contained in:
Paul Beckingham 2016-05-28 15:05:02 -04:00
parent eaf72ff1f2
commit 6e2e4cab15
2 changed files with 6 additions and 2 deletions

View file

@ -62,9 +62,12 @@ Interval getFilter (const CLI& cli)
if (arg.hasTag ("HINT"))
{
Range dummy;
if (expandIntervalHint (canonical, dummy))
Range range;
if (expandIntervalHint (canonical, range))
{
start = range.start.toISO ();
end = range.end.toISO ();
args.push_back ("<date>");
args.push_back ("-");
args.push_back ("<date>");

View file

@ -31,6 +31,7 @@
#include <Duration.h>
#include <sstream>
#include <iomanip>
#include <iostream>
#include <map>
#include <vector>