Command start now hints for command continue if called with ids

Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
This commit is contained in:
Thomas Lauf 2020-08-19 15:02:26 +02:00
parent e69bd4b03b
commit abf4784aba

View file

@ -50,6 +50,13 @@ int CmdStart (
"Perhaps you want the track command?.");
}
// We expect no ids
if (! cli.getIds ().empty ())
{
throw std::string ("The start command does not accept ids. "
"Perhaps you want the continue command?");
}
journal.startTransaction ();
if (validate (cli, rules, database, interval))
{