simplified
This commit is contained in:
@@ -750,11 +750,9 @@ string MainLoop::executeFind(vector<string> &args)
|
|||||||
" -c CIRCUIT limit to messages of CIRCUIT (or a part thereof without '-e')\n"
|
" -c CIRCUIT limit to messages of CIRCUIT (or a part thereof without '-e')\n"
|
||||||
" NAME the NAME of the messages to find (or a part thereof without '-e')";
|
" NAME the NAME of the messages to find (or a part thereof without '-e')";
|
||||||
|
|
||||||
deque<Message*> messages;
|
deque<Message*> messages = m_messages->findAll(
|
||||||
if (args.size() == argPos)
|
circuit, args.size() == argPos ? "" : args[argPos], pb, exact, withRead, withWrite, withPassive
|
||||||
messages = m_messages->findAll(circuit, "", pb, exact, withRead, withWrite, withPassive);
|
);
|
||||||
else
|
|
||||||
messages = m_messages->findAll(circuit, args[argPos], pb, exact, withRead, withWrite, withPassive);
|
|
||||||
|
|
||||||
bool found = false;
|
bool found = false;
|
||||||
ostringstream result;
|
ostringstream result;
|
||||||
@@ -771,7 +769,7 @@ string MainLoop::executeFind(vector<string> &args)
|
|||||||
} else if (!columns.empty()) {
|
} else if (!columns.empty()) {
|
||||||
if (found)
|
if (found)
|
||||||
result << endl;
|
result << endl;
|
||||||
message->dump(result, columns);
|
message->dump(result, &columns);
|
||||||
} else {
|
} else {
|
||||||
if (found)
|
if (found)
|
||||||
result << endl;
|
result << endl;
|
||||||
|
|||||||
Reference in New Issue
Block a user