mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
parent
784ecbbfd9
commit
4afd14ee2e
2 changed files with 11 additions and 0 deletions
|
@ -41,6 +41,11 @@ int CmdTag (
|
|||
std::set <int> ids = cli.getIds ();
|
||||
std::vector<std::string> tags = cli.getTags ();
|
||||
|
||||
if (tags.empty ())
|
||||
{
|
||||
throw std::string ("At least one tag must be specified. See 'timew help tag'.");
|
||||
}
|
||||
|
||||
// Load the data.
|
||||
// Note: There is no filter.
|
||||
Interval filter;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue