mirror of
				https://github.com/YACReader/yacreader
				synced 2025-10-30 15:54:27 -04:00 
			
		
		
		
	YACReaderLibrary: Add a barebone commandline parser
This commit is contained in:
		| @ -10,6 +10,7 @@ | ||||
| #ifndef use_unarr | ||||
|   #include <QLibrary> | ||||
| #endif | ||||
| #include <QCommandLineParser> | ||||
|  | ||||
| #include "yacreader_global.h" | ||||
| #include "startup.h" | ||||
| @ -127,6 +128,11 @@ int main( int argc, char ** argv ) | ||||
|  | ||||
|   qRegisterMetaType<ComicDB>("ComicDB"); | ||||
|  | ||||
| QCommandLineParser parser; | ||||
| parser.addHelpOption(); | ||||
| parser.addVersionOption(); | ||||
| parser.process(app); | ||||
|  | ||||
| #ifdef SERVER_RELEASE | ||||
|   QSettings * settings = new QSettings(YACReader::getSettingsPath()+"/YACReaderLibrary.ini",QSettings::IniFormat); //TODO unificar la creaci<63>n del fichero de config con el servidor | ||||
|   settings->beginGroup("libraryConfig"); | ||||
|  | ||||
		Reference in New Issue
	
	Block a user