CmdStart should not redirect to CmdTrack but issue an error message when called with range

Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
This commit is contained in:
Thomas Lauf 2020-07-13 16:40:37 +02:00
parent cc82f468e1
commit 91c246c42f

View file

@ -52,7 +52,8 @@ int CmdStart (
}
else if (interval.is_ended ())
{
return CmdTrack (cli, rules, database, journal);
throw std::string ("The start command does not accept ranges but only a single datetime. "
"Perhaps you want the track command?.");
}
auto latest = getLatestInterval (database);