mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-06-26 10:54:28 +02:00
Show error message if command track is called with an id
Closes #439 Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
This commit is contained in:
parent
30c69d8e78
commit
3c6caff67b
2 changed files with 8 additions and 0 deletions
|
@ -6,6 +6,7 @@
|
|||
(thanks to quazgar)
|
||||
- #437 Minor AtomicFile cleanup
|
||||
(thanks to Shaun Ruffel)
|
||||
- #439 Show error message if command track is called with an id
|
||||
- #441 Return report return code
|
||||
(thanks to lospatchos)
|
||||
- #450 Report 'totals.py' does not display data when no time range specified
|
||||
|
|
|
@ -39,6 +39,13 @@ int CmdTrack (
|
|||
|
||||
auto filter = cli.getFilter ();
|
||||
|
||||
// We expect no ids
|
||||
if (! cli.getIds ().empty ())
|
||||
{
|
||||
throw std::string ("The track command does not accept ids. "
|
||||
"Perhaps you want the continue command?");
|
||||
}
|
||||
|
||||
// If this is not a proper closed interval, then the user is trying to make
|
||||
// the 'track' command behave like 'start', so delegate to CmdStart.
|
||||
if (! filter.is_started () ||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue