----------------------------------------------------------------------------- rescan-xml-info-------------------------------------------------------------- -----------------------------------------------------------------------------
| 408 | // rescan-xml-info-------------------------------------------------------------- |
| 409 | // ----------------------------------------------------------------------------- |
| 410 | int rescanXmlInfo(QCoreApplication &app, QCommandLineParser &parser, QSettings *settings) |
| 411 | { |
| 412 | parser.clearPositionalArguments(); |
| 413 | parser.addPositionalArgument("rescan-xml-info", "Rescans all the files from an existing library at <path> and imports any missing tags from legacy ComicInfo.xml."); |
| 414 | parser.addPositionalArgument("path", "Path to the library to scan", "<path>"); |
| 415 | parser.process(app); |
| 416 | |
| 417 | const QStringList args = parser.positionalArguments(); |
| 418 | if (args.length() != 2) { |
| 419 | parser.showHelp(1); |
| 420 | return 1; |
| 421 | } |
| 422 | |
| 423 | ConsoleUILibraryCreator *libraryCreatorUI = new ConsoleUILibraryCreator(settings); |
| 424 | libraryCreatorUI->rescanXMLInfoLibrary(args.at(1)); |
| 425 | |
| 426 | return 0; |
| 427 | } |
| 428 | |
| 429 | // ----------------------------------------------------------------------------- |
| 430 |
no test coverage detected