----------------------------------------------------------------------------- update-library--------------------------------------------------------------- -----------------------------------------------------------------------------
| 295 | // update-library--------------------------------------------------------------- |
| 296 | // ----------------------------------------------------------------------------- |
| 297 | int updateLibrary(QCoreApplication &app, QCommandLineParser &parser, QSettings *settings) |
| 298 | { |
| 299 | parser.clearPositionalArguments(); |
| 300 | parser.addPositionalArgument("update-library", "Updates an existing library at <path>"); |
| 301 | parser.addPositionalArgument("path", "Path to the library to be updated", "<path>"); |
| 302 | parser.process(app); |
| 303 | |
| 304 | const QStringList args = parser.positionalArguments(); |
| 305 | if (args.length() != 2) { |
| 306 | parser.showHelp(1); |
| 307 | return 1; |
| 308 | } |
| 309 | |
| 310 | ConsoleUILibraryCreator *libraryCreatorUI = new ConsoleUILibraryCreator(settings); |
| 311 | libraryCreatorUI->updateLibrary(args.at(1)); |
| 312 | |
| 313 | return 0; |
| 314 | } |
| 315 | |
| 316 | // ----------------------------------------------------------------------------- |
| 317 | // add-library--------------------------------------------------------------- |
no test coverage detected