mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
parent
db13bd403f
commit
784ecbbfd9
2 changed files with 12 additions and 6 deletions
|
@ -39,12 +39,6 @@ int CmdTag (
|
|||
{
|
||||
// Gather IDs and TAGs.
|
||||
std::set <int> ids = cli.getIds ();
|
||||
|
||||
if (ids.empty ())
|
||||
{
|
||||
throw std::string ("IDs must be specified. See 'timew help tag'.");
|
||||
}
|
||||
|
||||
std::vector<std::string> tags = cli.getTags ();
|
||||
|
||||
// Load the data.
|
||||
|
@ -75,6 +69,11 @@ int CmdTag (
|
|||
}
|
||||
}
|
||||
|
||||
if (ids.empty ())
|
||||
{
|
||||
throw std::string ("At least one ID must be specified. See 'timew help tag'.");
|
||||
}
|
||||
|
||||
// Apply tags to ids.
|
||||
for (auto& id : ids)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue