mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
data: Verify that filter date ranges are in the proper order
This commit is contained in:
parent
f66127f473
commit
34e43cdb55
1 changed files with 3 additions and 0 deletions
|
@ -210,6 +210,9 @@ Interval getFilter (const CLI& cli)
|
|||
throw std::string ("Unrecognized date range: '") + join (" ", args) + "'.";
|
||||
}
|
||||
|
||||
if (filter.range.start > filter.range.end)
|
||||
throw std::string ("The end of a date range must be after the start.");
|
||||
|
||||
/*
|
||||
std::cout << "# getFilter:\n"
|
||||
<< "# " << filter.dump () << "\n";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue