| 223 | } |
| 224 | |
| 225 | bool ccCommandLineParser::registerCommand(Command::Shared command) |
| 226 | { |
| 227 | if (!command) |
| 228 | { |
| 229 | assert(false); |
| 230 | return false; |
| 231 | } |
| 232 | |
| 233 | if (m_commands.contains(command->m_keyword)) |
| 234 | { |
| 235 | assert(false); |
| 236 | warning(QString("Internal error: keyword '%1' already registered (by command '%2')").arg(command->m_keyword, m_commands[command->m_keyword]->m_name)); |
| 237 | return false; |
| 238 | } |
| 239 | |
| 240 | m_commands.insert(command->m_keyword, command); |
| 241 | |
| 242 | return true; |
| 243 | } |
| 244 | |
| 245 | QString ccCommandLineParser::getExportFilename( const CLEntityDesc& entityDesc, |
| 246 | QString extension/*=QString()*/, |
no test coverage detected