Commit a8007e43 authored by Oliver Heidmann's avatar Oliver Heidmann
Browse files

added functionality: --attrib [operator,operator2] now shows attribute for selected opeartors

parent 618591f7
......@@ -31,14 +31,22 @@ ModListOptions::parseRequest(std::string &requestString)
all = false;
for (int i = 0; i < cnt; i++)
{
if (opt.find(splitString[i]) != opt.end())
auto it = findModule(splitString[i]);
if (it != modules.end())
{
opt[splitString[i]] = 1;
std::cerr << splitString[i] << ": "<< it->second.toString() << std::endl;
}
else
{
std::cerr << "option " << splitString[i] << " not found" << std::endl;
return false;
if (opt.find(splitString[i]) != opt.end())
{
opt[splitString[i]] = 1;
}
else
{
std::cerr << "option " << splitString[i] << " not found" << std::endl;
return false;
}
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment