mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
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:
parent
e69bd4b03b
commit
abf4784aba
1 changed files with 7 additions and 0 deletions
|
@ -50,6 +50,13 @@ int CmdStart (
|
||||||
"Perhaps you want the track command?.");
|
"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 ();
|
journal.startTransaction ();
|
||||||
if (validate (cli, rules, database, interval))
|
if (validate (cli, rules, database, interval))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue