CLI2: Added ::getCommandRaw
- Used when the canonicalized form is not wanted - just the raw.
This commit is contained in:
10
src/CLI2.cpp
10
src/CLI2.cpp
@@ -762,6 +762,16 @@ std::string CLI2::getCommand () const
|
||||
return "";
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
std::string CLI2::getCommandRaw () const
|
||||
{
|
||||
for (auto& a : _args)
|
||||
if (a.hasTag ("CMD"))
|
||||
return a.attribute ("raw");
|
||||
|
||||
return "";
|
||||
}
|
||||
|
||||
/*
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
std::string CLI2::getLimit () const
|
||||
|
||||
Reference in New Issue
Block a user