CLI: Added ::getCommand

This commit is contained in:
Paul Beckingham 2016-04-03 13:25:50 -04:00
parent 518389ec58
commit f44194d54d
2 changed files with 11 additions and 0 deletions

View file

@ -260,6 +260,16 @@ bool CLI::canonicalize (
return false;
}
////////////////////////////////////////////////////////////////////////////////
std::string CLI::getCommand () const
{
for (const auto& a : _args)
if (a.hasTag ("CMD"))
return a.attribute ("canonical");
return "";
}
////////////////////////////////////////////////////////////////////////////////
const std::string CLI::dump (const std::string& title) const
{