CmdUntag: Obeys verbose mode

This commit is contained in:
Paul Beckingham 2016-06-11 11:06:05 -04:00
parent 1d7d951e2d
commit 4bae1941d0

View file

@ -67,10 +67,13 @@ int CmdUntag (
database.modifyInterval (tracked[tracked.size () - id], i); database.modifyInterval (tracked[tracked.size () - id], i);
// Feedback. // Feedback.
std::cout << "Removed"; if (rules.getBoolean ("verbose"))
for (auto& tag : tags) {
std::cout << ' ' << quoteIfNeeded (tag); std::cout << "Removed";
std::cout << " from @" << id << '\n'; for (auto& tag : tags)
std::cout << ' ' << quoteIfNeeded (tag);
std::cout << " from @" << id << '\n';
}
} }
} }