| 130 | } |
| 131 | |
| 132 | bool CommandLineInterface::DoExplainBacktraces(const std::string* pProduction, const int condition) |
| 133 | { |
| 134 | // quick sanity check |
| 135 | if (condition < -1) |
| 136 | { |
| 137 | return SetError("Condition number must be a non-negative integer."); |
| 138 | } |
| 139 | |
| 140 | agent* thisAgent = m_pAgentSML->GetSoarAgent(); |
| 141 | if (!pProduction) |
| 142 | { |
| 143 | // no production means query, ignore other args |
| 144 | ExplainListChunks(thisAgent); |
| 145 | return true; |
| 146 | } |
| 147 | |
| 148 | ExplainChunks(thisAgent, pProduction->c_str(), condition); |
| 149 | return true; |
| 150 | } |
| 151 |
no test coverage detected