#21 Move method to gather tags to CLI

This commit is contained in:
Thomas Lauf 2018-05-12 18:47:19 +02:00 committed by lauft
parent d8169d7952
commit db13bd403f
3 changed files with 18 additions and 6 deletions

View file

@ -539,3 +539,17 @@ std::set<int> CLI::getIds() const
}
////////////////////////////////////////////////////////////////////////////////
std::vector<std::string> CLI::getTags () const
{
std::vector <std::string> tags;
for (auto& arg : _args)
{
if (arg.hasTag ("TAG"))
tags.push_back (arg.attribute ("raw"));
}
return tags;
}
////////////////////////////////////////////////////////////////////////////////